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

lua: memory leaks

parent 30c7f613
......@@ -285,13 +285,17 @@ static int vlclua_input_item_is_preparsed( lua_State *L )
static int vlclua_input_item_uri( lua_State *L )
{
lua_pushstring( L, input_item_GetURI( vlclua_input_item_get_internal( L ) ) );
char *uri = input_item_GetURI( vlclua_input_item_get_internal( L ) );
lua_pushstring( L, uri );
free( uri );
return 1;
}
static int vlclua_input_item_name( lua_State *L )
{
lua_pushstring( L, input_item_GetName( vlclua_input_item_get_internal( L ) ) );
char *name = input_item_GetName( vlclua_input_item_get_internal( L ) );
lua_pushstring( L, name );
free( name );
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