Fixes memory leak when opening alias file