[PATCH 3/6] tests: Resolve Coverity RESOURCE_LEAK

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

 



The cleanup path did not clear the reference for sk1 and sk2

Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
 tests/virnetdaemontest.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/virnetdaemontest.c b/tests/virnetdaemontest.c
index fb8a6c0..24cbd54 100644
--- a/tests/virnetdaemontest.c
+++ b/tests/virnetdaemontest.c
@@ -125,6 +125,8 @@ testCreateServer(const char *host, int family)
     virObjectUnref(cln2);
     virObjectUnref(svc1);
     virObjectUnref(svc2);
+    virObjectUnref(sk1);
+    virObjectUnref(sk2);
     return srv;
 
  error:
-- 
2.1.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]