Commit 160324c6 authored by Rémi Duraffort's avatar Rémi Duraffort

lua: fix potential memleak.

parent 03415034
......@@ -224,11 +224,19 @@ int Open_LuaIntf( vlc_object_t *p_this )
if( asprintf( &psz_command,
"package.path = \"%s"DIR_SEP"modules"DIR_SEP"?.lua;\"..package.path",
p_sys->psz_filename ) < 0 )
{
free( psz_name );
free( p_sys );
return VLC_EGENERIC;
}
*psz_char = DIR_SEP_CHAR;
if( luaL_dostring( L, psz_command ) )
{
free( psz_name );
free( p_sys );
return VLC_EGENERIC;
}
}
/* </gruik> */
psz_config = var_CreateGetString( p_intf, "lua-config" );
......
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