Commit 5301a05d authored by Vitor Sessak's avatar Vitor Sessak

Fix memory leak in NUT muxer

Originally committed as revision 22222 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 124cb451
......@@ -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;
}
......
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