]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Resolve Coverity RESOURCE_LEAK
authorJohn Ferlan <jferlan@redhat.com>
Tue, 8 Sep 2015 11:21:17 +0000 (07:21 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 24 Sep 2015 13:53:38 +0000 (09:53 -0400)
The cleanup path did not clear the reference for sk1 and sk2

Signed-off-by: John Ferlan <jferlan@redhat.com>
tests/virnetdaemontest.c

index fb8a6c0c0ec54756a52324e83dd791e043b21e59..24cbd54531a2d4dbb369d7acffb15ceb00395a64 100644 (file)
@@ -125,6 +125,8 @@ testCreateServer(const char *host, int family)
     virObjectUnref(cln2);
     virObjectUnref(svc1);
     virObjectUnref(svc2);
+    virObjectUnref(sk1);
+    virObjectUnref(sk2);
     return srv;
 
  error: