Skip to content

Commit

Permalink
Close compressor stream to ensure no C resources are leaked
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Oct 17, 2024
1 parent 9ffe097 commit 0e3146a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/put.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ function putObjectImpl(x::AbstractStore, key::String, in::RequestBodyType;
end
# cleanup body
if body isa compressorstream(zlibng)
close(body)
body = body.stream
end
if in isa String
Expand Down

0 comments on commit 0e3146a

Please sign in to comment.