Skip to content

Commit

Permalink
Fix mem leak when trying to open a non-existing image file.
Browse files Browse the repository at this point in the history
Patch by Przemysław Sobala, psobala wp-sa pl


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@24757 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
  • Loading branch information
cehoyos committed Aug 10, 2010
1 parent 86e4d73 commit c6e5061
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavformat/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c6e5061

Please sign in to comment.