projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b40a0ef
)
The field 're' only exists if HAVE_REGEX_H is defined (see definition at
author
Corey Kosak
<kosak@google.com>
Fri, 22 Jan 2016 22:22:18 +0000
(17:22 -0500)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 26 Jan 2016 05:58:13 +0000
(06:58 +0100)
line 194). So, consistent with all other usages, this should be protected
with an #if guard.
src/processes.c
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
aca18b9
..
f030569
100644
(file)
--- 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;
}