mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -113,6 +113,7 @@ testGetCaps(char *capsData, const testQemuData *data)
|
||||
|
||||
error:
|
||||
virObjectUnref(qemuCaps);
|
||||
virObjectUnref(caps);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user