Skip to content

Commit

Permalink
out_stackdriver: clean up buffer before return (fluent#2640)
Browse files Browse the repository at this point in the history
Signed-off-by: Yen-Cheng Chou <[email protected]>
  • Loading branch information
StevenYCChou authored and Magnus Sirviö committed Oct 7, 2020
1 parent f558550 commit 4a435dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/out_stackdriver/stackdriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,7 @@ static int stackdriver_format(struct flb_config *config,
ret = extract_local_resource_id(data, bytes, ctx, tag);
if (ret != 0) {
flb_plg_error(ctx->ins, "fail to construct local_resource_id");
msgpack_sbuffer_destroy(&mp_sbuf);
return -1;
}
}
Expand Down

0 comments on commit 4a435dd

Please sign in to comment.