MMDB_get_entry_data_list()
now always sets the passedentry_data_list
parameter to eitherNULL
or valid memory. This makes it safe for
callers to useMMDB_free_entry_data_list()
on it even in case of error.
In 1.12.0MMDB_get_entry_data_list()
was changed to not set this
parameter to valid memory in additional error cases. That change caused
segfaults for certain libraries that assumed it was safe to free memory
on error. Doing so was never safe, but worked in some cases. This change
makes such calls safe. Reported by Petr Pisar. GitHub
maxmind/MaxMind-DB-Reader-XS#39.