Fix SF #789402, Memory leak on open()

If opening a directory, the exception would leak.
1 file changed