mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
6743809dbf
commit
a36b0ad2d5
|
@ -125,6 +125,8 @@ testCreateServer(const char *host, int family)
|
|||
virObjectUnref(cln2);
|
||||
virObjectUnref(svc1);
|
||||
virObjectUnref(svc2);
|
||||
virObjectUnref(sk1);
|
||||
virObjectUnref(sk2);
|
||||
return srv;
|
||||
|
||||
error:
|
||||
|
|
Loading…
Reference in New Issue