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 committed 2015-09-24 09:53:38 -04:00
1 parent a2ac63af0e
commit 6743809dbf
1 file changed
+1
+1
View File
@@ -113,6 +113,7 @@ testGetCaps(char *capsData, const testQemuData *data)
error:
virObjectUnref(qemuCaps);
virObjectUnref(caps);
return NULL;
}