changeset 6015:8986c1d43cb2 libavformat

matroskadec: Use av_freep in ebml_read_ascii Based on a Chromium patch
author conrad
date Tue, 18 May 2010 21:21:23 +0000
parents b66058698117
children ce535a7152ef
files matroskadec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Tue May 18 19:48:25 2010 +0000
+++ b/matroskadec.c	Tue May 18 21:21:23 2010 +0000
@@ -621,7 +621,7 @@
     if (!(*str = av_malloc(size + 1)))
         return AVERROR(ENOMEM);
     if (get_buffer(pb, (uint8_t *) *str, size) != size) {
-        av_free(*str);
+        av_freep(str);
         return AVERROR(EIO);
     }
     (*str)[size] = '\0';