snoyberg/yaml — Issue #5: Segfaults when `decodeFile` throws "file not found"
Author: eagletmt
Created: 2011-12-07 08:55:12+00:00
State: open

Even if `decodeFile` fails to open a file, `fclose` is called via `addForeignPtrFinalizerEnv`, thus segfaults.

Possible fixes:

- Add NULL-check just before `fclose` in `fclose_helper`
- Do `addForeignPtrFinalizerEnv` just after NULL-check