From b21ab82a9ffe2a74a29c1dd606cb2ca7db6cd985 Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Wed, 5 Feb 2014 10:49:24 +0100 Subject: [PATCH] Please free strings *after* printing them ;-) Signed-off-by: Florian Forster --- src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.c b/src/common.c index c41c4fe6..9c4e64f6 100644 --- 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)) -- 2.11.0