summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 456d6b6)
raw | patch | inline | side by side (parent: 456d6b6)
author | Florian Forster <octo@collectd.org> | |
Tue, 8 Dec 2015 12:14:47 +0000 (13:14 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 8 Dec 2015 12:14:47 +0000 (13:14 +0100) |
CID: 38013
src/tail.c | patch | blob | history |
diff --git a/src/tail.c b/src/tail.c
index 5b9dc53988c46440c839878253385dd097f8d3ad..72d97a385245b1918c89c2a42d0e0f2a5287a44c 100644 (file)
--- a/src/tail.c
+++ b/src/tail.c
if (tm == NULL)
{
ERROR ("tail plugin: tail_match_create (%s) failed.",
- ci->values[0].value.string);
+ ci->values[0].value.string);
return (-1);
}
{
status = ctail_config_add_match (tm, plugin_instance, option);
if (status == 0)
- num_matches++;
+ num_matches++;
/* Be mild with failed matches.. */
status = 0;
}
break;
} /* for (i = 0; i < ci->children_num; i++) */
+ sfree (plugin_instance);
+
if (num_matches == 0)
{
ERROR ("tail plugin: No (valid) matches found for file `%s'.",
- ci->values[0].value.string);
+ ci->values[0].value.string);
tail_match_destroy (tm);
return (-1);
}
cu_tail_match_t **temp;
temp = (cu_tail_match_t **) realloc (tail_match_list,
- sizeof (cu_tail_match_t *) * (tail_match_list_num + 1));
+ sizeof (cu_tail_match_t *) * (tail_match_list_num + 1));
if (temp == NULL)
{
ERROR ("tail plugin: realloc failed.");