qemu-sockets: use qapi_free_SocketAddress in cleanup
Commit 74b6ce43e3
uses the wrong free API for a SocketAddress, that
may leak some linked data.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20160706164246.22116-1-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1e13c01d2a
commit
73f40c1895
@ -1012,7 +1012,7 @@ void socket_listen_cleanup(int fd, Error **errp)
|
||||
}
|
||||
}
|
||||
|
||||
g_free(addr);
|
||||
qapi_free_SocketAddress(addr);
|
||||
}
|
||||
|
||||
int socket_dgram(SocketAddress *remote, SocketAddress *local, Error **errp)
|
||||
|
Loading…
Reference in New Issue
Block a user