Commit ccbcf482 authored by Michael Niedermayer's avatar Michael Niedermayer

udp: use av_freep() instead of av_free()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fc5999d0
...@@ -637,7 +637,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) ...@@ -637,7 +637,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
} }
for (i = 0; i < num_sources; i++) for (i = 0; i < num_sources; i++)
av_free(sources[i]); av_freep(&sources[i]);
s->udp_fd = udp_fd; s->udp_fd = udp_fd;
...@@ -678,7 +678,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) ...@@ -678,7 +678,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
closesocket(udp_fd); closesocket(udp_fd);
av_fifo_free(s->fifo); av_fifo_free(s->fifo);
for (i = 0; i < num_sources; i++) for (i = 0; i < num_sources; i++)
av_free(sources[i]); av_freep(&sources[i]);
return AVERROR(EIO); return AVERROR(EIO);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment