Browse Source

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
tags/n0.8
Przemysław Sobala Carl Eugen Hoyos 15 years ago
parent
commit
ec973f45a3
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/utils.c

+ 1
- 0
libavformat/utils.c View File

@@ -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);
}


Loading…
Cancel
Save