Remove use of realloc but use malloc to allocate dyanmic array in MMDB_vget_value