mirror of https://gitee.com/openkylin/libvirt.git
tests: Resolve Coverity RESOURCE_LEAK
In the error path need to unref the 'caps' as well Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
a2ac63af0e
commit
6743809dbf
|
@ -113,6 +113,7 @@ testGetCaps(char *capsData, const testQemuData *data)
|
|||
|
||||
error:
|
||||
virObjectUnref(qemuCaps);
|
||||
virObjectUnref(caps);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue