Fix: double free when both mmap and read fail
Merge pull request #8 from shayanelhami/master

Fixed a bug when both mmap and read fail