diff --git a/src/compiler/crystal/loader/unix.cr b/src/compiler/crystal/loader/unix.cr index 1b79ec073127..9a9e1d19ede2 100644 --- a/src/compiler/crystal/loader/unix.cr +++ b/src/compiler/crystal/loader/unix.cr @@ -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