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:
John Ferlan 2015-09-08 07:12:52 -04:00
parent a2ac63af0e
commit 6743809dbf
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ testGetCaps(char *capsData, const testQemuData *data)
error:
virObjectUnref(qemuCaps);
virObjectUnref(caps);
return NULL;
}