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

[libvirt] [PATCH 3/5] securityselinuxtest: Don't leak @mgr



The security manager is created so that test cases can use it.
However, it is never released.

Signed-off-by: Michal Privoznik <mprivozn redhat com>
---
 tests/securityselinuxtest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/securityselinuxtest.c b/tests/securityselinuxtest.c
index 63161b9b3..767b6cc02 100644
--- a/tests/securityselinuxtest.c
+++ b/tests/securityselinuxtest.c
@@ -337,6 +337,7 @@ mymain(void)
                       "svirt_t", "svirt_image_t",
                       0, 0, 0, 1023);
 
+    virObjectUnref(mgr);
     return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
 }
 
-- 
2.13.0


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