changeset 6361:34df2b405550 libavformat

Fix mem leak when trying to open a non-existing image file (issue 2126). Patch by PrzemysŠČaw Sobala, psobala wp-sa pl
author cehoyos
date Tue, 10 Aug 2010 17:27:22 +0000
parents 4f920c9dd895
children 38df997e4331
files utils.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }