Skip to content

Commit 562fc80

Browse files
committed
out_s3: fix buffered data on exception (CID 309438)
Signed-off-by: Eduardo Silva <[email protected]>
1 parent c22e7db commit 562fc80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/out_s3/s3_multipart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ static struct multipart_upload *upload_from_file(struct flb_s3 *ctx,
192192
if (ret == -1) {
193193
flb_plg_error(ctx->ins, "Could not read file metadata: %s",
194194
fsf->name);
195+
flb_free(buffered_data);
195196
return NULL;
196197
}
197198

0 commit comments

Comments
 (0)