[vlc-commits] packetizer: flac: fix memory leak

Hannes Domani git at videolan.org
Sat Aug 30 02:40:46 CEST 2014


vlc/vlc-2.2 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Aug 29 18:17:17 2014 +0200| [ae2e2e4d7f6c56911963939a4236833a1ec478b3] | committer: Jean-Baptiste Kempf

packetizer: flac: fix memory leak

(cherry picked from commit 832510eb27f32d6e08451d7591a8149caadff935)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=ae2e2e4d7f6c56911963939a4236833a1ec478b3
---

 modules/packetizer/flac.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index d3fe322..3303a27 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -769,6 +769,7 @@ static void Close(vlc_object_t *p_this)
     decoder_t *p_dec = (decoder_t *)p_this;
     decoder_sys_t *p_sys = p_dec->p_sys;
 
+    es_format_Clean(&p_dec->fmt_out);
     block_BytestreamRelease(&p_sys->bytestream);
     free(p_sys);
 }



More information about the vlc-commits mailing list