Allocating memory for ipv6 looks unnecessary here. Could be done only if IPV4_parser fails.