client/x11: Fix leak found by covscan
leaked_storage: Variable "actionScript" going out of scope leaks the storage it points to.
This commit is contained in:
parent
dde4c38382
commit
baeb29a7e0
@ -183,6 +183,7 @@ BOOL xf_event_action_script_init(xfContext* xfc)
|
||||
|
||||
if (!xevent || ArrayList_Add(xfc->xevents, xevent) < 0)
|
||||
{
|
||||
pclose(actionScript);
|
||||
ArrayList_Free(xfc->xevents);
|
||||
xfc->xevents = NULL;
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user