diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-24 13:00:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-24 13:14:07 +0100 |
commit | ef05af82b275c6e97f1e0bfdf92a3d9c56881aff (patch) | |
tree | e389652ddb2e31a7115c0b47a99dd6a38442d1c6 /libavformat | |
parent | 82d1abc44c5e46f8d64a62dc153ea5ece7ac202b (diff) | |
download | ffmpeg-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.c | 4 |
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); |