From 1156c0685a40032c63394b4a1ef471e711b21d30 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 4 Dec 2015 23:17:13 +0100 Subject: [PATCH] processes plugin: plug leak on error CID #38004 --- src/processes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/processes.c b/src/processes.c index 4f98c010..63d22fc4 100644 --- a/src/processes.c +++ b/src/processes.c @@ -288,6 +288,7 @@ static void ps_list_register (const char *name, const char *regexp) { DEBUG ("ProcessMatch: compiling the regular expression \"%s\" failed.", regexp); sfree(new->re); + sfree (new); return; } } -- 2.30.2