Correctly sending the packet, but now there is a memory problem