提交 6743809d 编写于 作者: J John Ferlan

tests: Resolve Coverity RESOURCE_LEAK

In the error path need to unref the 'caps' as well
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 a2ac63af
......@@ -113,6 +113,7 @@ testGetCaps(char *capsData, const testQemuData *data)
error:
virObjectUnref(qemuCaps);
virObjectUnref(caps);
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册