mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
qemu-socket: drop pointless allocation
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
afde3f8b99
commit
c1204afc7c
1 changed files with 0 additions and 1 deletions
|
@ -871,7 +871,6 @@ SocketAddress *socket_parse(const char *str, Error **errp)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
addr->kind = SOCKET_ADDRESS_KIND_INET;
|
addr->kind = SOCKET_ADDRESS_KIND_INET;
|
||||||
addr->inet = g_new(InetSocketAddress, 1);
|
|
||||||
addr->inet = inet_parse(str, errp);
|
addr->inet = inet_parse(str, errp);
|
||||||
if (addr->inet == NULL) {
|
if (addr->inet == NULL) {
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue