Avoid leaking file descriptors, in order to free disk space after unlinking files.
Currently the disk space for retired swap files is not freed after they are unlinked if the filesize() function has been called, due to a leaked file descriptor holding the file open.
There is also a leaked file descriptor in retire_swapfile() when in paranoid mode.
Avoid leaking file descriptors, in order to free disk space after unlinking files.
Currently the disk space for retired swap files is not freed after they are unlinked if the filesize() function has been called, due to a leaked file descriptor holding the file open.
There is also a leaked file descriptor in retire_swapfile() when in paranoid mode.