projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a76219
)
Please free strings *after* printing them ;-)
author
Matthias Urlichs
<matthias@urlichs.de>
Wed, 5 Feb 2014 09:49:24 +0000
(10:49 +0100)
committer
Florian Forster
<octo@collectd.org>
Wed, 5 Feb 2014 10:06:07 +0000
(11:06 +0100)
Signed-off-by: Florian Forster <octo@collectd.org>
src/common.c
patch
|
blob
|
history
diff --git
a/src/common.c
b/src/common.c
index
c41c4fe
..
9c4e64f
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-1020,9
+1020,9
@@
int parse_value (const char *value_orig, value_t *ret_value, int ds_type)
}
if (value == endptr) {
- sfree (value);
ERROR ("parse_value: Failed to parse string as %s: %s.",
DS_TYPE_TO_STRING (ds_type), value);
+ sfree (value);
return -1;
}
else if ((NULL != endptr) && ('\0' != *endptr))