summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-28 01:09:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-28 10:12:04 +0200
commitccbcf482ad3df6d59ad45d25462e45dca4e92ec6 (patch)
tree2c9a793ff6bb223f2da0b0cfba5b8d57b316cff5 /libavformat/udp.c
parentfc5999d0270ef83b9229e173b4106ae374041a19 (diff)
downloadffmpeg-ccbcf482ad3df6d59ad45d25462e45dca4e92ec6.tar.gz
udp: use av_freep() instead of av_free()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index e444a7d102..5b5c7cb7df 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -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);
}