From 74e2a081add0f56f6ce25af41b42e1257165c5d2 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 28 Nov 2015 19:45:42 +0100 Subject: [PATCH] bind: tmp doesn't point to start of allocated memory --- src/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bind.c b/src/bind.c index 06b4ace0..9fb3ec49 100644 --- a/src/bind.c +++ b/src/bind.c @@ -1666,7 +1666,7 @@ static int bind_config_add_view (oconfig_item_t *ci) /* {{{ */ if (tmp->name == NULL) { ERROR ("bind plugin: strdup failed."); - free (tmp); + sfree (views); return (-1); } -- 2.30.2