projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2421a01
)
fix memleak, free stream codec allocated by av_new_stream
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Tue, 5 Dec 2006 14:01:44 +0000
(14:01 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Tue, 5 Dec 2006 14:01:44 +0000
(14:01 +0000)
Originally committed as revision 7225 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
ab0b689
..
6c3a65b
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-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++)