summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorPrzemysław Sobala <psobala@wp-sa.pl>2010-08-10 17:27:22 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2010-08-10 17:27:22 +0000
commitec973f45a3afd82fd53313b0b570645c03b2b178 (patch)
treeb8335ca9c67b0a0be514533ec153df11f4f85b66 /libavformat
parent21afed5e1be3cb756f7002d4b67c6fc0b8d220bc (diff)
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
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c1
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);
}