This helps reduce the memory requirements for a closed but unfinalised
Handle.
-- free the spare buffers
writeIORef (haBuffers handle_) BufferListNil
+ writeIORef (haBuffer handle_) noBuffer
#ifndef mingw32_HOST_OS
-- unlock it
haType = ClosedHandle
})
+{-# NOINLINE noBuffer #-}
+noBuffer = unsafePerformIO $ allocateBuffer 1 ReadBuffer
+
-----------------------------------------------------------------------------
-- Detecting and changing the size of a file