[FFmpeg-cvslog] avformat/rtpproto: Use av_freep() to avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Wed Dec 24 13:20:13 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 24 13:00:34 2014 +0100| [ef05af82b275c6e97f1e0bfdf92a3d9c56881aff] | committer: Michael Niedermayer
avformat/rtpproto: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ef05af82b275c6e97f1e0bfdf92a3d9c56881aff
---
libavformat/rtpproto.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index 88a3979..b6b8924 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -510,10 +510,10 @@ static int rtp_close(URLContext *h)
int i;
for (i = 0; i < s->nb_ssm_include_addrs; i++)
- av_free(s->ssm_include_addrs[i]);
+ av_freep(&s->ssm_include_addrs[i]);
av_freep(&s->ssm_include_addrs);
for (i = 0; i < s->nb_ssm_exclude_addrs; i++)
- av_free(s->ssm_exclude_addrs[i]);
+ av_freep(&s->ssm_exclude_addrs[i]);
av_freep(&s->ssm_exclude_addrs);
ffurl_close(s->rtp_hd);
More information about the ffmpeg-cvslog
mailing list