You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In correct_file, if IO#write raises an exception IO#close will not be called, leaking the file descriptor. rb_ensure() should be used to ensure the file descriptor is closed regardless of exceptions.
The text was updated successfully, but these errors were encountered:
In
correct_file
, if IO#write raises an exception IO#close will not be called, leaking the file descriptor.rb_ensure()
should be used to ensure the file descriptor is closed regardless of exceptions.The text was updated successfully, but these errors were encountered: