diff options
author | Przemysław Sobala <psobala@wp-sa.pl> | 2010-08-10 17:27:22 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-08-10 17:27:22 +0000 |
commit | ec973f45a3afd82fd53313b0b570645c03b2b178 (patch) | |
tree | b8335ca9c67b0a0be514533ec153df11f4f85b66 | |
parent | 21afed5e1be3cb756f7002d4b67c6fc0b8d220bc (diff) | |
download | ffmpeg-ec973f45a3afd82fd53313b0b570645c03b2b178.tar.gz |
Fix mem leak when trying to open a non-existing image file (issue 2126).
Patch by Przemysław Sobala, psobala wp-sa pl
Originally committed as revision 24757 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 2f59c263fe..fb0554b98a 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -474,6 +474,7 @@ int av_open_input_stream(AVFormatContext **ic_ptr, if (st) { av_free(st->priv_data); av_free(st->codec->extradata); + av_free(st->codec); } av_free(st); } |