projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007d96f
)
processes.c: plug memory leak in error path
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 27 Nov 2015 21:00:10 +0000
(22:00 +0100)
committer
Florian Forster
<octo@collectd.org>
Sat, 28 Nov 2015 06:38:41 +0000
(07:38 +0100)
Found with Infer (http://fbinfer.com/)
Signed-off-by: Florian Forster <octo@collectd.org>
src/processes.c
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
516104f
..
bcc4ad5
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-276,6
+276,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;
}
}