提交 c1fecf20 编写于 作者: W Wenchao Xia 提交者: Michael Roth

tests: fix memleak in error path test for input visitor

Signed-off-by: NWenchao Xia <xiawenc@linux.vnet.ibm.com>
Reviewed-by: NEric 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: NAnthony Liguori <aliguori@amazon.com>
(cherry picked from commit 8aa15b6e)
Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
上级 08e2f35c
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册