Mercurial > libavformat.hg
changeset 5815:9e5e8c64ab54 libavformat
oggdec: Fix memory leak in setting up vorbis headers
author | conrad |
---|---|
date | Thu, 11 Mar 2010 07:17:49 +0000 |
parents | e993cab1faf3 |
children | c587ece53810 |
files | oggparsevorbis.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/oggparsevorbis.c Thu Mar 11 07:17:46 2010 +0000 +++ b/oggparsevorbis.c Thu Mar 11 07:17:49 2010 +0000 @@ -153,6 +153,7 @@ for (i = 0; i < 3; i++) { memcpy(&ptr[offset], priv->packet[i], priv->len[i]); offset += priv->len[i]; + av_freep(&priv->packet[i]); } *buf = av_realloc(*buf, offset + FF_INPUT_BUFFER_PADDING_SIZE); return offset;