Skip to content

Commit d4aa84c

Browse files
committed
out_influxdb properly free configuration string value on exit
1 parent cb44828 commit d4aa84c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/out_influxdb/influxdb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,10 @@ static int cb_influxdb_exit(void *data, struct flb_config *config)
613613
flb_free(ctx->seq_name);
614614
}
615615

616+
if (ctx->prefix) {
617+
flb_free(ctx->prefix);
618+
}
619+
616620
flb_upstream_destroy(ctx->u);
617621
flb_free(ctx);
618622

0 commit comments

Comments
 (0)