From ec973f45a3afd82fd53313b0b570645c03b2b178 Mon Sep 17 00:00:00 2001 From: Przemysław Sobala Date: Tue, 10 Aug 2010 17:27:22 +0000 Subject: Fix mem leak when trying to open a non-existing image file (issue 2126). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Przemysław Sobala, psobala wp-sa pl Originally committed as revision 24757 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat') 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); } -- cgit v1.2.3