[FFmpeg-cvslog] udp: use av_freep() instead of av_free()
Michael Niedermayer
git at videolan.org
Thu Jun 28 10:21:51 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun 28 01:09:43 2012 +0200| [ccbcf482ad3df6d59ad45d25462e45dca4e92ec6] | committer: Michael Niedermayer
udp: use av_freep() instead of av_free()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ccbcf482ad3df6d59ad45d25462e45dca4e92ec6
---
libavformat/udp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/udp.c b/libavformat/udp.c
index e444a7d..5b5c7cb 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);
}
More information about the ffmpeg-cvslog
mailing list