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: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F1419%2Fhead;p=thirdparty%2Fcollectd.git processes plugin: plug leak on error CID #38004 --- diff --git a/src/processes.c b/src/processes.c index 4f98c0103..63d22fc4f 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; } }