From 5c19a9f696f52cf2747349967843bd725133e915 Mon Sep 17 00:00:00 2001 From: Corey Kosak Date: Fri, 22 Jan 2016 17:22:18 -0500 Subject: [PATCH] The field 're' only exists if HAVE_REGEX_H is defined (see definition at line 194). So, consistent with all other usages, this should be protected with an #if guard. --- src/processes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/processes.c b/src/processes.c index aca18b99..f0305694 100644 --- a/src/processes.c +++ b/src/processes.c @@ -302,7 +302,9 @@ static void ps_list_register (const char *name, const char *regexp) "`ProcessMatch' with the same name. " "All but the first setting will be " "ignored."); +#if HAVE_REGEX_H sfree (new->re); +#endif sfree (new); return; } -- 2.30.2