diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-11-06 02:35:51 +0800 |
---|---|---|
committer | Anthony Liguori <aliguori@amazon.com> | 2013-11-05 19:58:38 -0800 |
commit | 8aa15b6e527f234e491a6d354bed4d10da3a01a7 (patch) | |
tree | 6cde9b2388b0a42438fa3e85b9d9315f70eb7b42 | |
parent | 3dce9cad5a6c0b0dbe0830973b270c9466c8ab4b (diff) |
tests: fix memleak in error path test for input visitor
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>
-rw-r--r-- | tests/test-qmp-input-visitor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-qmp-input-visitor.c b/tests/test-qmp-input-visitor.c index 0beb8fbfd2..1e1c6fa0c2 100644 --- 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); } |