mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Fix memory leak in NUT muxer
Originally committed as revision 22222 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
124cb45137
commit
5301a05d3e
@ -2865,8 +2865,10 @@ int av_write_trailer(AVFormatContext *s)
|
|||||||
fail:
|
fail:
|
||||||
if(ret == 0)
|
if(ret == 0)
|
||||||
ret=url_ferror(s->pb);
|
ret=url_ferror(s->pb);
|
||||||
for(i=0;i<s->nb_streams;i++)
|
for(i=0;i<s->nb_streams;i++) {
|
||||||
av_freep(&s->streams[i]->priv_data);
|
av_freep(&s->streams[i]->priv_data);
|
||||||
|
av_freep(&s->streams[i]->index_entries);
|
||||||
|
}
|
||||||
av_freep(&s->priv_data);
|
av_freep(&s->priv_data);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user