Commit cd4fd5e2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

LUA: fix memory leak (already fixed in 1.1)

parent 16735eb0
......@@ -120,7 +120,9 @@ static int vlclua_datadir( lua_State *L )
static int vlclua_userdatadir( lua_State *L )
{
lua_pushstring( L, config_GetUserDataDir() );
char *data = config_GetUserDataDir();
lua_pushstring( L, data );
free( data );
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment