aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/oggparsevorbis.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-03-11 07:17:49 +0000
committerDavid Conrad <lessen42@gmail.com>2010-03-11 07:17:49 +0000
commit2ac41150c03eab9a2149b54d537e338ea3df0b09 (patch)
treee6a35caf0d061338dc954b60d499f6ce453f96b1 /libavformat/oggparsevorbis.c
parent8f8320d7c32c375e86712aa406465c30a27eb8d3 (diff)
downloadffmpeg-2ac41150c03eab9a2149b54d537e338ea3df0b09.tar.gz
oggdec: Fix memory leak in setting up vorbis headers
Originally committed as revision 22460 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r--libavformat/oggparsevorbis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 618e6c4737..b491b6d291 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -153,6 +153,7 @@ fixup_vorbis_headers(AVFormatContext * as, struct oggvorbis_private *priv,
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;