1
0
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:
Vitor Sessak 2010-03-05 17:26:34 +00:00
parent 124cb45137
commit 5301a05d3e

View File

@ -2865,8 +2865,10 @@ int av_write_trailer(AVFormatContext *s)
fail:
if(ret == 0)
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]->index_entries);
}
av_freep(&s->priv_data);
return ret;
}