diff options
author | David Conrad <lessen42@gmail.com> | 2010-03-11 07:17:49 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2010-03-11 07:17:49 +0000 |
commit | 2ac41150c03eab9a2149b54d537e338ea3df0b09 (patch) | |
tree | e6a35caf0d061338dc954b60d499f6ce453f96b1 /libavformat/oggparsevorbis.c | |
parent | 8f8320d7c32c375e86712aa406465c30a27eb8d3 (diff) | |
download | ffmpeg-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.c | 1 |
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; |