Update inter.c

Fixed mem leak issue due to doubled hostname