[vlc-commits] lua: fix memory leak

Pierre Ynard git at videolan.org
Sun May 20 06:24:02 CEST 2012


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

lua: fix memory leak

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

 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 2312e68..32b3b71 100644
--- a/modules/lua/libs/equalizer.c
+++ b/modules/lua/libs/equalizer.c
@@ -240,6 +240,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