correctly delete allocated outgoing messages