Avoid double free when processing DTLS packets.