summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a76219)
raw | patch | inline | side by side (parent: 7a76219)
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 c41c4fe629dd14685e543964d9a7c05b7d8f399b..9c4e64f68783d446073f3b21e8f46e8e219bff2c 100644 (file)
--- a/src/common.c
+++ b/src/common.c
}
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))