MMDB-Swift
MMDB-Swift copied to clipboard
memory leaking
let status = MMDB_get_entry_data_list(&entry, &list) if status != MMDB_SUCCESS { return nil } you should free memory when status is success:
defer {
MMDB_free_entry_data_list(list)
}