Commit ef05af82 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/rtpproto: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 82d1abc4
...@@ -510,10 +510,10 @@ static int rtp_close(URLContext *h) ...@@ -510,10 +510,10 @@ static int rtp_close(URLContext *h)
int i; int i;
for (i = 0; i < s->nb_ssm_include_addrs; 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); av_freep(&s->ssm_include_addrs);
for (i = 0; i < s->nb_ssm_exclude_addrs; i++) 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); av_freep(&s->ssm_exclude_addrs);
ffurl_close(s->rtp_hd); ffurl_close(s->rtp_hd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment