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

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

 



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

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux