X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftail_csv.c;h=2e3ac5f0bbd639a27e4f61b5d74143c9566eb3f6;hb=43ee9ced15521d541dd3fb0698c9c490339dd35f;hp=f303988553d09f696c231b212cf2cfb8ee9a4314;hpb=6fe9925aebdc99cee1ae3d00a0a869477400c8e5;p=collectd.git diff --git a/src/tail_csv.c b/src/tail_csv.c index f3039885..2e3ac5f0 100644 --- a/src/tail_csv.c +++ b/src/tail_csv.c @@ -481,7 +481,7 @@ static int tcsv_config_add_file(oconfig_item_t *ci) { return -1; } - ssnprintf(cb_name, sizeof(cb_name), "tail_csv/%s", id->path); + snprintf(cb_name, sizeof(cb_name), "tail_csv/%s", id->path); status = plugin_register_complex_read( NULL, cb_name, tcsv_read, id->interval, @@ -490,7 +490,6 @@ static int tcsv_config_add_file(oconfig_item_t *ci) { }); if (status != 0) { ERROR("tail_csv plugin: Registering complex read function failed."); - tcsv_instance_definition_destroy(id); return -1; }