Skip to content

Commit

Permalink
Fix double free on Crystal::Loader#close_all (#11662)
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored Jan 3, 2022
1 parent 87f8bb4 commit 9c2d38e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/crystal/loader/unix.cr
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class Crystal::Loader
@handles.each do |handle|
LibC.dlclose(handle)
end
@handles.clear
end

# Returns a list of directories used as the default search paths
Expand Down

0 comments on commit 9c2d38e

Please sign in to comment.