From: Ruben Kerkhof Date: Fri, 4 Dec 2015 22:17:13 +0000 (+0100) Subject: processes plugin: plug leak on error X-Git-Tag: collectd-5.6.0~523^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1156c0685a40032c63394b4a1ef471e711b21d30;p=collectd.git processes plugin: plug leak on error CID #38004 --- 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; } }