Commit ec973f45 authored by Przemysław Sobala's avatar Przemysław Sobala Committed by Carl Eugen Hoyos

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
parent 21afed5e
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment