From: Marc-André Lureau Date: Tue, 12 Jul 2016 14:08:47 +0000 (+0200) Subject: tests: fix leak in test-string-input-visitor X-Git-Tag: TizenStudio_2.0_p2.3.2~9^2~14^2~5^2~203^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd794065ffffe10721b6a95f1db52f2cc7953196;p=sdk%2Femulator%2Fqemu.git tests: fix leak in test-string-input-visitor Free the list returned by visit_type_intList(). Signed-off-by: Marc-André Lureau Reviewed-by: Eric Blake --- diff --git a/tests/test-string-input-visitor.c b/tests/test-string-input-visitor.c index d837ebe..a679fbc 100644 --- a/tests/test-string-input-visitor.c +++ b/tests/test-string-input-visitor.c @@ -228,6 +228,7 @@ static void test_visitor_in_fuzz(TestInputVisitorData *data, v = visitor_input_test_init(data, buf); visit_type_intList(v, NULL, &ilres, NULL); + qapi_free_intList(ilres); visitor_input_teardown(data, NULL); v = visitor_input_test_init(data, buf);