X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbind.c;h=dd49cb2220709ed8dc5b760928d21d013cdcb871;hb=f0b5610723ae8962ae264f84210f8bac483bcd20;hp=06b4ace00393e2321fc7bef9762f4b320c582aa5;hpb=44dda7ba64dfdcab9d5fa8dbffc3bea980f13ab9;p=collectd.git diff --git a/src/bind.c b/src/bind.c index 06b4ace0..dd49cb22 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);