mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
udputils: don't free invalid memory
As spotted by benjiG in IRC. don't free invalid memory when getaddrinfo failed.
This commit is contained in:
parent
b8e88710e1
commit
8f43709e00
1 changed files with 1 additions and 1 deletions
|
@ -107,8 +107,8 @@ gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr)
|
|||
ret = EAI_ADDRFAMILY;
|
||||
}
|
||||
|
||||
beach:
|
||||
freeaddrinfo (res);
|
||||
beach:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue