diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-12-05 14:01:44 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-12-05 14:01:44 +0000 |
commit | 3c13202396ec110308ed62656cbbc0e540774f69 (patch) | |
tree | fb101f96504795a28a44bed10ed1dd744f000f7c /ffmpeg.c | |
parent | 2421a01b258c0a0ba4b6f77289973fff3eba3b29 (diff) | |
download | ffmpeg-3c13202396ec110308ed62656cbbc0e540774f69.tar.gz |
fix memleak, free stream codec allocated by av_new_stream
Originally committed as revision 7225 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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++) |