qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-stable] [PATCH RFC 09/10] tests: fix memleak in error path test fo


From: Wenchao Xia
Subject: [Qemu-stable] [PATCH RFC 09/10] tests: fix memleak in error path test for input visitor
Date: Tue, 5 Nov 2013 08:37:39 +0800

Signed-off-by: Wenchao Xia <address@hidden>
Cc: address@hidden
---
 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 0beb8fb..1e1c6fa 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);
 }
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]