[vim] memory not freed after failing to open file
|Reported by:||Adek336||Owned by:||siarzhuk|
|Component:||Applications/Command Line Tools||Version:||R1/pre-alpha1|
Try to open a file larger than memory size in vim. Vim fails and opens an empty buffer, however, it doesn't free the memory it allocated during the open attempt.
Under Linux vim can open huge files, using physical memory but not swap, just like if the memory manager removed unneeded parts of the file from memory and planned to reread them when necessary.