From: Art Cancro Date: Tue, 16 Nov 2010 15:48:51 +0000 (-0500) Subject: event_jid is a buffer, not a pointer, so don't free() it X-Git-Tag: v8.01~577 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=bbe94366a8b1df5cf46687acfc1cdebfb1961976;p=citadel.git event_jid is a buffer, not a pointer, so don't free() it --- diff --git a/citadel/modules/xmpp/xmpp_queue.c b/citadel/modules/xmpp/xmpp_queue.c index 986cb2570..77ce80343 100644 --- a/citadel/modules/xmpp/xmpp_queue.c +++ b/citadel/modules/xmpp/xmpp_queue.c @@ -155,11 +155,6 @@ void xmpp_cleanup_events(void) ptr = xmpp_queue; xmpp_queue = NULL; while (ptr != NULL) { -#if 0 -// TODO: why do we have an invalid pointer here? - if (ptr->event_jid != NULL) - free(ptr->event_jid); -#endif ptr2 = ptr->next; free(ptr); ptr = ptr2;