
23 Sep
2015
23 Sep
'15
11:18 p.m.
In the error path need to unref the 'caps' as well Signed-off-by: John Ferlan <jferlan@redhat.com> --- tests/qemucaps2xmltest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qemucaps2xmltest.c b/tests/qemucaps2xmltest.c index 6a5811c..7adde24 100644 --- a/tests/qemucaps2xmltest.c +++ b/tests/qemucaps2xmltest.c @@ -113,6 +113,7 @@ testGetCaps(char *capsData, const testQemuData *data) error: virObjectUnref(qemuCaps); + virObjectUnref(caps); return NULL; } -- 2.1.0