From baeb29a7e06fcd61599b7475e2e98e062a4bc63a Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Fri, 17 Aug 2018 14:28:55 +0200 Subject: [PATCH] client/x11: Fix leak found by covscan leaked_storage: Variable "actionScript" going out of scope leaks the storage it points to. --- client/X11/xf_event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/X11/xf_event.c b/client/X11/xf_event.c index c85a7db..01449d2 100644 --- a/client/X11/xf_event.c +++ b/client/X11/xf_event.c @@ -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; -- 2.7.4