aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-24 13:00:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-24 13:14:07 +0100
commitef05af82b275c6e97f1e0bfdf92a3d9c56881aff (patch)
treee389652ddb2e31a7115c0b47a99dd6a38442d1c6 /libavformat
parent82d1abc44c5e46f8d64a62dc153ea5ece7ac202b (diff)
downloadffmpeg-ef05af82b275c6e97f1e0bfdf92a3d9c56881aff.tar.gz
avformat/rtpproto: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtpproto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index 88a39796a9..b6b89247e7 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);