fix(udp): memory allocation in udp