Mercurial > libavformat.hg
diff matroskadec.c @ 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 | 10b0e7cac09f |
children | ce535a7152ef |
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';