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:
Marc-André Lureau 2016-07-06 18:42:46 +02:00 committed by Paolo Bonzini
parent 1e13c01d2a
commit 73f40c1895

View File

@ -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)