X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbind.c;h=27164fd464fb2b024cb55048a85b530e64b5309e;hb=59547eb66a3743ca0b458222d7a4318f3e659a60;hp=32b0f16e21f50311d530f934f72964076dfee0ee;hpb=9424954ff108699e798e677e9e78428ca74d04b8;p=collectd.git diff --git a/src/bind.c b/src/bind.c index 32b0f16e..27164fd4 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); } @@ -1709,6 +1709,7 @@ static int bind_config (oconfig_item_t *ci) /* {{{ */ return (-1); } + sfree (url); url = strdup (child->values[0].value.string); } else if (strcasecmp ("OpCodes", child->key) == 0) bind_config_set_bool ("OpCodes", &global_opcodes, child);