From bbe94366a8b1df5cf46687acfc1cdebfb1961976 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 16 Nov 2010 10:48:51 -0500 Subject: [PATCH] event_jid is a buffer, not a pointer, so don't free() it --- citadel/modules/xmpp/xmpp_queue.c | 5 ----- 1 file changed, 5 deletions(-) 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; -- 2.39.2