tests: Resolve Coverity RESOURCE_LEAK

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

Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
John Ferlan 2015-09-08 07:21:17 -04:00
parent 6743809dbf
commit a36b0ad2d5

View File

@ -125,6 +125,8 @@ testCreateServer(const char *host, int family)
virObjectUnref(cln2);
virObjectUnref(svc1);
virObjectUnref(svc2);
virObjectUnref(sk1);
virObjectUnref(sk2);
return srv;
error: