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