You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
udp: use av_freep() instead of av_free()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -637,7 +637,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
|
||||
}
|
||||
|
||||
for (i = 0; i < num_sources; i++)
|
||||
av_free(sources[i]);
|
||||
av_freep(&sources[i]);
|
||||
|
||||
s->udp_fd = udp_fd;
|
||||
|
||||
@@ -678,7 +678,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
|
||||
closesocket(udp_fd);
|
||||
av_fifo_free(s->fifo);
|
||||
for (i = 0; i < num_sources; i++)
|
||||
av_free(sources[i]);
|
||||
av_freep(&sources[i]);
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user