Skip to content

Commit

Permalink
out_influxdb properly free configuration string value on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
ueli-g committed Sep 30, 2024
1 parent cb44828 commit d4aa84c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/out_influxdb/influxdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d4aa84c

Please sign in to comment.