From e01209268a710341765879eb32412027fb60257d Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 27 Nov 2015 22:00:10 +0100 Subject: [PATCH] processes.c: plug memory leak in error path Found with Infer (http://fbinfer.com/) Signed-off-by: Florian Forster --- src/processes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/processes.c b/src/processes.c index 516104f0..bcc4ad54 100644 --- a/src/processes.c +++ b/src/processes.c @@ -276,6 +276,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