summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-05-18 21:21:23 +0000
committerDavid Conrad <lessen42@gmail.com>2010-05-18 21:21:23 +0000
commit1c664b239cb583868c41cc04ceee38b02aa4caf5 (patch)
tree7fc1c5b8c64def1b944666cc5df6ff5753e8ea97 /libavformat/matroskadec.c
parent44bf251a42ac6dd416b0454d168d426dd55e714b (diff)
matroskadec: Use av_freep in ebml_read_ascii
Based on a Chromium patch Originally committed as revision 23166 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 90356d818b..556d6b9eb8 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -621,7 +621,7 @@ static int ebml_read_ascii(ByteIOContext *pb, int size, char **str)
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';