[vlc-devel] [PATCH 3/3] demux: ogg: fix memory leaks
Hannes Domani
ssbssa at yahoo.de
Fri Jan 15 15:49:47 CET 2016
---
modules/demux/ogg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index cc69c0c..26ad579 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2203,7 +2203,9 @@ static void Ogg_CleanSpecificData( logical_stream_t *p_stream )
#ifdef HAVE_LIBVORBIS
if ( p_stream->fmt.i_codec == VLC_CODEC_VORBIS )
{
+ vorbis_info_clear( p_stream->special.vorbis.p_info );
FREENULL( p_stream->special.vorbis.p_info );
+ vorbis_comment_clear( p_stream->special.vorbis.p_comment );
FREENULL( p_stream->special.vorbis.p_comment );
p_stream->special.vorbis.i_headers_flags = 0;
}
--
2.7.0
More information about the vlc-devel
mailing list