processes plugin: plug leak on error
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Dec 2015 22:17:13 +0000 (23:17 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Dec 2015 22:17:13 +0000 (23:17 +0100)
CID #38004

src/processes.c

index 4f98c01..63d22fc 100644 (file)
@@ -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;
                }
        }