From d4aa84c3c35261601fb78fa593bcaa3336e8d5e7 Mon Sep 17 00:00:00 2001 From: Ueli Graf Date: Mon, 30 Sep 2024 08:39:51 +0000 Subject: [PATCH] out_influxdb properly free configuration string value on exit --- plugins/out_influxdb/influxdb.c | 4 ++++ 1 file changed, 4 insertions(+) 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);