[vlc-commits] lua: fix memory leak

Pierre Ynard git at videolan.org
Mon May 21 01:00:19 CEST 2012


vlc/vlc-2.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun May 20 06:23:35 2012 +0200| [a1a3464ce7565065d3055fa10cc5384419e32180] | committer: Pierre Ynard

lua: fix memory leak
(cherry picked from commit a754b0062dbfcd34a648842a2d8b53707ad6cfe3)

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

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

 modules/lua/libs/equalizer.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/lua/libs/equalizer.c b/modules/lua/libs/equalizer.c
index a800d02..42d31f5 100644
--- a/modules/lua/libs/equalizer.c
+++ b/modules/lua/libs/equalizer.c
@@ -243,6 +243,7 @@ static int vlclua_equalizer_set( lua_State *L )
         bands[i_pos+i] = newstr[i];
     var_SetString( p_aout, "equalizer-bands", bands );
 
+    free( bands );
     vlc_object_release( p_aout );
     return 1;
 }



More information about the vlc-commits mailing list