[vlc-commits] adpcm: fix double free

Rémi Denis-Courmont git at videolan.org
Sat Jun 6 17:20:36 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun  6 18:20:12 2015 +0300| [609176bcebc83d40ff85cfd555859f2156f331f6] | committer: Rémi Denis-Courmont

adpcm: fix double free

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

 modules/codec/adpcm.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/codec/adpcm.c b/modules/codec/adpcm.c
index b052965..0876831 100644
--- a/modules/codec/adpcm.c
+++ b/modules/codec/adpcm.c
@@ -349,8 +349,6 @@ static void CloseDecoder( vlc_object_t *p_this )
     decoder_t *p_dec = (decoder_t *)p_this;
     decoder_sys_t *p_sys = p_dec->p_sys;
 
-    if( p_sys->codec == ADPCM_EA )
-        free( p_dec->fmt_in.p_extra );
     free( p_sys );
 }
 



More information about the vlc-commits mailing list