mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00: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:
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
Block a user