changeset 22010:04b7b7090eee

Forgotten free on error
author reimar
date Sat, 27 Jan 2007 14:52:18 +0000
parents 7228d3f4db2a
children 9562199ac075
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Sat Jan 27 14:51:59 2007 +0000
+++ b/libmpdemux/demux_mkv.c	Sat Jan 27 14:52:18 2007 +0000
@@ -648,6 +648,8 @@
                 {
                   mp_msg (MSGT_DEMUX, MSGL_WARN,
                           MSGTR_MPDEMUX_MKV_LzoDecompressionFailed);
+                  free(*dest);
+                  *dest = NULL;
                   return modified;
                 }
               mp_msg (MSGT_DEMUX, MSGL_DBG2,