Skip to content

Commit

Permalink
Fix memory leak in test detected by LeakSanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ysaito1001 committed Nov 29, 2024
1 parent 43debc1 commit 63f24e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ mod tests {
let contents = vec![0; MIN_MULTIPART_PART_SIZE_BYTES as usize];
let ctx = UploadObjectsContext::new(handle, input);
let job = UploadObjectJob {
object: InputStream::from(Bytes::from_static(Box::leak(contents.into_boxed_slice()))),
object: InputStream::from(Bytes::copy_from_slice(contents.as_slice())),
key: key.to_owned(),
};

Expand Down

0 comments on commit 63f24e0

Please sign in to comment.