[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] tests: Resolve Coverity RESOURCE_LEAK



Commit id 'b77ce18a2' added a new bitmap, but neglected to virBitmapFree it

Signed-off-by: John Ferlan <jferlan redhat com>
---
 tests/virbitmaptest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c
index 9a84e4c..a6e9a38 100644
--- a/tests/virbitmaptest.c
+++ b/tests/virbitmaptest.c
@@ -548,6 +548,7 @@ test10(const void *opaque ATTRIBUTE_UNUSED)
     virBitmapFree(b1);
     virBitmapFree(b2);
     virBitmapFree(b3);
+    virBitmapFree(b4);
     return ret;
 }
 
-- 
2.1.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]