From: Ruben Kerkhof Date: Sat, 28 Nov 2015 18:45:42 +0000 (+0100) Subject: bind: tmp doesn't point to start of allocated memory X-Git-Tag: collectd-5.5.1~40^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9204a08464154faaca89690ad205989c121335cb;p=thirdparty%2Fcollectd.git bind: tmp doesn't point to start of allocated memory --- diff --git a/src/bind.c b/src/bind.c index 03dfcc77c..14c075924 100644 --- a/src/bind.c +++ b/src/bind.c @@ -1311,7 +1311,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); }