diff --git a/src/tail_csv.c b/src/tail_csv.c
index f303988553d09f696c231b212cf2cfb8ee9a4314..2e3ac5f0bbd639a27e4f61b5d74143c9566eb3f6 100644 (file)
--- a/src/tail_csv.c
+++ b/src/tail_csv.c
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,
});
if (status != 0) {
ERROR("tail_csv plugin: Registering complex read function failed.");
- tcsv_instance_definition_destroy(id);
return -1;
}