Fix memory leaks

`fs_stat`, `fs_fstat` and `fs_lstat` were all leaking `stats` on failure :(