Commit b0923b3f authored by vitor's avatar vitor

Fix memory leak in NUT muxer


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22222 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3f8a0205
......@@ -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