projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e78bc6
)
test-migration: fix memory leak
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 12 Mar 2019 14:07:22 +0000
(15:07 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 12 Mar 2019 14:18:40 +0000
(15:18 +0100)
Reported by ASAN.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/migration-test.c
patch
|
blob
|
history
diff --git
a/tests/migration-test.c
b/tests/migration-test.c
index 48dc20a2ae0c015e6c7461f1e0839a73ca73cdd4..bd3f5c3125197759aa140c6e6d56f1d6f5f27ba9 100644
(file)
--- a/
tests/migration-test.c
+++ b/
tests/migration-test.c
@@
-382,9
+382,10
@@
static char *migrate_get_socket_address(QTestState *who, const char *parameter)
iv = qobject_input_visitor_new(object);
visit_type_SocketAddressList(iv, NULL, &addrs, &local_err);
+ visit_free(iv);
/* we are only using a single address */
- result =
g_strdup_printf("%s", SocketAddress_to_str(addrs->value)
);
+ result =
SocketAddress_to_str(addrs->value
);
qapi_free_SocketAddressList(addrs);
qobject_unref(rsp);