# HG changeset patch # User cehoyos # Date 1281461242 0 # Node ID 34df2b405550d01065ea9fb17d95c7833310d783 # Parent 4f920c9dd895a0a58096f2c0e6e55b179f885e90 Fix mem leak when trying to open a non-existing image file (issue 2126). Patch by PrzemysŠČaw Sobala, psobala wp-sa pl diff -r 4f920c9dd895 -r 34df2b405550 utils.c --- a/utils.c Tue Aug 10 16:36:36 2010 +0000 +++ b/utils.c Tue Aug 10 17:27:22 2010 +0000 @@ -474,6 +474,7 @@ if (st) { av_free(st->priv_data); av_free(st->codec->extradata); + av_free(st->codec); } av_free(st); }