Skip to content

Commit

Permalink
out_s3: fix buffered data on exception (CID 309438)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Oct 14, 2024
1 parent c22e7db commit 562fc80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/out_s3/s3_multipart.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ static struct multipart_upload *upload_from_file(struct flb_s3 *ctx,
if (ret == -1) {
flb_plg_error(ctx->ins, "Could not read file metadata: %s",
fsf->name);
flb_free(buffered_data);
return NULL;
}

Expand Down

0 comments on commit 562fc80

Please sign in to comment.