projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dce9ca
)
tests: fix memleak in error path test for input visitor
author
Wenchao Xia
<xiawenc@linux.vnet.ibm.com>
Tue, 5 Nov 2013 18:35:51 +0000
(
02:35
+0800)
committer
Anthony Liguori
<aliguori@amazon.com>
Wed, 6 Nov 2013 03:58:38 +0000
(19:58 -0800)
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id:
1383676551
-18806-3-git-send-email-xiawenc@linux.vnet.ibm.com
Cc: qemu-stable@nongnu.org
Signed-off-by: Anthony Liguori <aliguori@amazon.com>
tests/test-qmp-input-visitor.c
patch
|
blob
|
history
diff --git
a/tests/test-qmp-input-visitor.c
b/tests/test-qmp-input-visitor.c
index 0beb8fbfd2d91b95b45eeec31de05d3a6a86ae6e..1e1c6fa0c27bb5c64e7fef9398da0d2b15673450 100644
(file)
--- a/
tests/test-qmp-input-visitor.c
+++ b/
tests/test-qmp-input-visitor.c
@@
-604,6
+604,7
@@
static void test_visitor_in_errors(TestInputVisitorData *data,
g_assert(error_is_set(&errp));
g_assert(p->string == NULL);
+ error_free(errp);
g_free(p->string);
g_free(p);
}