Skip to content
Snippets Groups Projects
Commit 5301a05d authored by Vitor Sessak's avatar Vitor Sessak
Browse files

Fix memory leak in NUT muxer

Originally committed as revision 22222 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 124cb451
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment