[FFmpeg-cvslog] fix memory leak in oggenc

Maksym Veremeyenko git at videolan.org
Fri Sep 30 16:28:48 CEST 2011


ffmpeg | branch: master | Maksym Veremeyenko <verem at m1stereo.tv> | Fri Sep 30 14:42:34 2011 +0300| [dacf07661467bc349d17bdab06516daceabffb23] | committer: Michael Niedermayer

fix memory leak in oggenc

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dacf07661467bc349d17bdab06516daceabffb23
---

 libavformat/oggenc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 73b311d..21b3501 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -519,6 +519,8 @@ static int ogg_write_trailer(AVFormatContext *s)
             av_free(oggstream->header[0]);
             av_free(oggstream->header[1]);
         }
+        else
+            av_free(oggstream->header[1]);
         av_freep(&st->priv_data);
     }
     return 0;



More information about the ffmpeg-cvslog mailing list