Skip to content

Commit

Permalink
lua: fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
linkfanel committed May 20, 2012
1 parent 31b5fbd commit a754b00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/lua/libs/equalizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a754b00

Please sign in to comment.