Commit 148321c6 authored by bcoudurier's avatar bcoudurier

fix memleak, free stream codec allocated by av_new_stream

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7225 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent af56b1db
......@@ -3942,8 +3942,10 @@ int main(int argc, char **argv)
int j;
if (!(s->oformat->flags & AVFMT_NOFILE))
url_fclose(&s->pb);
for(j=0;j<s->nb_streams;j++)
for(j=0;j<s->nb_streams;j++) {
av_free(s->streams[j]->codec);
av_free(s->streams[j]);
}
av_free(s);
}
for(i=0;i<nb_input_files;i++)
......
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