Fix leaks in MMDB_open()

If obtaining the database size fails free the allocated memory and close
the file descriptor.
Merge pull request #49 from fgsch/master

Fix leaks in MMDB_open()