Skip to content

Commit 79bc485

Browse files
committed
out_influxdb properly free configuration string value on exit
Signed-off-by: Ueli Graf <[email protected]>
1 parent e25fc64 commit 79bc485

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
@@ -614,6 +614,10 @@ static int cb_influxdb_exit(void *data, struct flb_config *config)
614614
flb_free(ctx->seq_name);
615615
}
616616

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

0 commit comments

Comments
 (0)