fix memleak and useless conversion in IP2Location_read128