diff options
author | Maksym Veremeyenko <verem@m1stereo.tv> | 2011-09-30 14:42:34 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-30 16:27:54 +0200 |
commit | dacf07661467bc349d17bdab06516daceabffb23 (patch) | |
tree | 8ee5f3f6a87f0871f79f524884369472dcd427e8 /libavformat/oggenc.c | |
parent | f65c6f751fe011217ed4fa0668916c1933b1e34e (diff) | |
download | ffmpeg-dacf07661467bc349d17bdab06516daceabffb23.tar.gz |
fix memory leak in oggenc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggenc.c')
-rw-r--r-- | libavformat/oggenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index 73b311dd3a..21b350110e 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; |