Message ID | 20160719085432.4572-13-marcandre.lureau@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 07/19/2016 02:54 AM, marcandre.lureau@redhat.com wrote: > From: Marc-André Lureau <marcandre.lureau@redhat.com> > > Free the list returned by visit_type_intList(). > > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> > --- > tests/test-string-input-visitor.c | 1 + > 1 file changed, 1 insertion(+) Hmm, I thought I'd fixed that under valgrind previously. But browsing logs, I see where I touched other visitor tests but not this one. :) Reviewed-by: Eric Blake <eblake@redhat.com> > > 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); >
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);