Hi all, At first my patch was supposed to be a bit more important but either some changes are already taking care of or after second thoughts some were not worthy enough.
Hope it s good enough. Kind regards.
From 4c694b4ff20a6ec88bc73c51a93c23de3f781c01 Mon Sep 17 00:00:00 2001 From: David Carlier <devne...@gmail.com> Date: Thu, 21 Sep 2017 14:36:43 +0000 Subject: [PATCH] CLEANUP: log since we do not log the sample fetch when it is invalid, we can free the log data. --- src/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log.c b/src/log.c index 5c42f6b2a..0fb0f68e0 100644 --- a/src/log.c +++ b/src/log.c @@ -484,6 +484,7 @@ int add_sample_to_logformat_list(char *text, char *arg, int arg_len, struct prox node->options |= LOG_OPT_RES_CAP; /* fetch method is response-compatible */ if (!(expr->fetch->val & cap)) { + free(node); memprintf(err, "sample fetch <%s> may not be reliably used here because it needs '%s' which is not available here", text, sample_src_names(expr->fetch->use)); return 0; -- 2.14.1