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

[libvirt] [PATCH] tests: fix leaks in storagevolxml2argvtest



Reported by John Ferlan.
---
 tests/storagevolxml2argvtest.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/storagevolxml2argvtest.c b/tests/storagevolxml2argvtest.c
index 416bb6f..77ba800 100644
--- a/tests/storagevolxml2argvtest.c
+++ b/tests/storagevolxml2argvtest.c
@@ -89,6 +89,10 @@ cleanup:
     virCommandFree(cmd);
     VIR_FREE(actualCmdline);
     VIR_FREE(expectedCmdline);
+    VIR_FREE(poolXmlData);
+    VIR_FREE(volXmlData);
+    VIR_FREE(inputvolXmlData);
+    virObjectUnref(conn);
     return ret;
 }
 
-- 
1.7.12.4


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