Originally committed as revision 22460 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -153,6 +153,7 @@ fixup_vorbis_headers(AVFormatContext * as, struct oggvorbis_private *priv, |
| 153 | 153 |
for (i = 0; i < 3; i++) {
|
| 154 | 154 |
memcpy(&ptr[offset], priv->packet[i], priv->len[i]); |
| 155 | 155 |
offset += priv->len[i]; |
| 156 |
+ av_freep(&priv->packet[i]); |
|
| 156 | 157 |
} |
| 157 | 158 |
*buf = av_realloc(*buf, offset + FF_INPUT_BUFFER_PADDING_SIZE); |
| 158 | 159 |
return offset; |