Update map.c

Fixed mem leak issue due to doubled hostname