Skip to content

Commit

Permalink
zip: zlib can already have been closed
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Jun 3, 2024
1 parent b4f51a2 commit e82e571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stdlib/src/zip.erl
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ do_zip(F, Files, Options) ->
{ok, Out3}
catch
C:R:Stk ->
zlib:close(Z),
?CATCH(zlib:close(Z)),
Output({close, F}, Out0),
erlang:raise(C, R, Stk)
end.
Expand Down

0 comments on commit e82e571

Please sign in to comment.