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:
Ondrej Holy 2018-08-17 14:28:55 +02:00
parent dde4c38382
commit baeb29a7e0
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ BOOL xf_event_action_script_init(xfContext* xfc)
if (!xevent || ArrayList_Add(xfc->xevents, xevent) < 0) if (!xevent || ArrayList_Add(xfc->xevents, xevent) < 0)
{ {
pclose(actionScript);
ArrayList_Free(xfc->xevents); ArrayList_Free(xfc->xevents);
xfc->xevents = NULL; xfc->xevents = NULL;
return FALSE; return FALSE;