in_tail: destroy flb_tail_config after removing files
@@ -258,8 +258,8 @@ static int in_tail_exit(void *data, struct flb_config *config)
flb_utils_split_free(ctx->exclude_list);
}
- flb_tail_config_destroy(ctx);
flb_tail_file_remove_all(ctx);
+ flb_tail_config_destroy(ctx);
return 0;
}
