diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/qemu-sockets.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index cc2b043907..3677cd21dc 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -1148,7 +1148,6 @@ void qapi_copy_SocketAddress(SocketAddress **p_dest, SocketAddress *src) { QmpOutputVisitor *qov; - QmpInputVisitor *qiv; Visitor *ov, *iv; QObject *obj; @@ -1163,10 +1162,9 @@ void qapi_copy_SocketAddress(SocketAddress **p_dest, return; } - qiv = qmp_input_visitor_new(obj, true); - iv = qmp_input_get_visitor(qiv); + iv = qmp_input_visitor_new(obj, true); visit_type_SocketAddress(iv, NULL, p_dest, &error_abort); - qmp_input_visitor_cleanup(qiv); + visit_free(iv); qobject_decref(obj); } |