diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-07-12 16:08:47 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-09-08 18:05:21 +0400 |
commit | bd794065ffffe10721b6a95f1db52f2cc7953196 (patch) | |
tree | 1a1f7430c5c88b941e23528151f4dff1c276a3bd /tests/test-string-input-visitor.c | |
parent | 3972a4884ddffcdd1037f5ec2a5a514784bdcec9 (diff) | |
download | qemu-bd794065ffffe10721b6a95f1db52f2cc7953196.zip |
tests: fix leak in test-string-input-visitor
Free the list returned by visit_type_intList().
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/test-string-input-visitor.c')
-rw-r--r-- | tests/test-string-input-visitor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-string-input-visitor.c b/tests/test-string-input-visitor.c index d837ebedad..a679fbc678 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); |