raspell icon indicating copy to clipboard operation
raspell copied to clipboard

correct_file may leak file descriptors

Open drbrain opened this issue 13 years ago • 0 comments

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.

drbrain avatar Apr 05 '12 22:04 drbrain