mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
avformat/rtpproto: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
82d1abc44c
commit
ef05af82b2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user