mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit 'd2771a1dc0a3695e8873adc16d068077f2417eea'
* commit 'd2771a1dc0a3695e8873adc16d068077f2417eea': rtpproto: Free the addrinfo pointer on failure Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
cec4e1c7c7
@ -232,8 +232,10 @@ static void rtp_parse_addr_list(URLContext *h, char *buf,
|
||||
ai = rtp_resolve_host(p, 0, SOCK_DGRAM, AF_UNSPEC, 0);
|
||||
if (ai) {
|
||||
source_addr = av_mallocz(sizeof(struct sockaddr_storage));
|
||||
if (!source_addr)
|
||||
if (!source_addr) {
|
||||
freeaddrinfo(ai);
|
||||
break;
|
||||
}
|
||||
|
||||
memcpy(source_addr, ai->ai_addr, ai->ai_addrlen);
|
||||
freeaddrinfo(ai);
|
||||
|
Loading…
Reference in New Issue
Block a user