Fix memory leak in MMDB_lookup when lookup fails for some reason
Fix memory leaks in test code

This makes it easier to use valgrind against tests to look for leaks in the library
Fix bad malloc size - we need the size of the struct, not the size of the pointer