Cleanup of shutdown of event contexts
[citadel.git] / citadel / modules / smtp / serv_smtpeventclient.c
index f3a1566bdefa8f83caac66159bbaa80c2eacf706..664dec2472aff9b56fbab4297a57c6a7021a2cac 100644 (file)
@@ -95,6 +95,9 @@ void DeleteSmtpOutMsg(void *v)
 {
        SmtpOutMsg *Msg = v;
 
+       /* these are kept in our own space and free'd below */
+       Msg->IO.ConnectMe = NULL;
+
        ares_free_data(Msg->AllMX);
        if (Msg->HostLookup.VParsedDNSReply != NULL)
                Msg->HostLookup.DNSReplyFree(Msg->HostLookup.VParsedDNSReply);