# HG changeset patch # User aurel # Date 1212449834 0 # Node ID f386245ae6f784765f7aa7f08cff48cb0991085c # Parent 89f651b6f12ab2209efd18485790fd23e12845ea matroskadec: fix potential mem leak may or may not fix CID134 and CID135 diff -r 89f651b6f12a -r f386245ae6f7 matroskadec.c --- a/matroskadec.c Mon Jun 02 23:27:14 2008 +0000 +++ b/matroskadec.c Mon Jun 02 23:37:14 2008 +0000 @@ -505,6 +505,7 @@ offset_t pos = url_ftell(pb); av_log(matroska->ctx, AV_LOG_ERROR, "Read error at pos. %"PRIu64" (0x%"PRIx64")\n", pos, pos); + av_free(*str); return AVERROR(EIO); } (*str)[size] = '\0';