Commit cf015393 authored by Rémi Duraffort's avatar Rémi Duraffort

lua_intf: fix memleak.

parent cc352bcf
......@@ -151,7 +151,7 @@ int Open_LuaIntf( vlc_object_t *p_this )
config_ChainParse( p_intf, "lua-", ppsz_intf_options, p_intf->p_cfg );
char *psz_name = GetModuleName( p_intf );
const char *psz_config;
char *psz_config;
bool b_config_set = false;
if( !psz_name ) psz_name = strdup( "dummy" );
......@@ -261,6 +261,8 @@ int Open_LuaIntf( vlc_object_t *p_this )
}
}
}
free( psz_config );
if( b_config_set == false )
{
lua_newtable( L );
......
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