Skip to content

Commit

Permalink
fix buffer array deletion properly (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
snarky-snarksson authored Feb 23, 2024
1 parent 0e9183f commit 46d27bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ minio::s3::PutObjectResponse minio::s3::Client::PutObject(PutObjectArgs args) {

std::string upload_id;
PutObjectResponse resp = PutObject(args, upload_id, buf);
delete buf;
delete[] buf;

if (!resp && !upload_id.empty()) {
AbortMultipartUploadArgs amu_args;
Expand Down

0 comments on commit 46d27bd

Please sign in to comment.