Is there a need to realloc/reinit the map here?