diff --git a/plugins/out_influxdb/influxdb.c b/plugins/out_influxdb/influxdb.c index 4e881284a97..2205ee06096 100644 --- a/plugins/out_influxdb/influxdb.c +++ b/plugins/out_influxdb/influxdb.c @@ -613,6 +613,10 @@ static int cb_influxdb_exit(void *data, struct flb_config *config) flb_free(ctx->seq_name); } + if (ctx->prefix) { + flb_free(ctx->prefix); + } + flb_upstream_destroy(ctx->u); flb_free(ctx);