Describe the bug
All close/delete ops should go through OS_FinalizeDelete() so things are cleaned up consistently.
But there remain a couple places where this is not done - OS_close() and its variants e.g. OS_CloseFileByName and OS_CloseAllFiles
To Reproduce
This is apparent if there is some action in the PSP handler for deallocation. It will not get invoked for these close ops because it doesn't go through the common delete path.
Expected behavior
Should go through common path.
System observed on:
Ubuntu 20.04
Reporter Info
Joseph Hickey, Vantage Systems, Inc.