event_jid is a buffer, not a pointer, so don't free() it
authorArt Cancro <ajc@citadel.org>
Tue, 16 Nov 2010 15:48:51 +0000 (10:48 -0500)
committerArt Cancro <ajc@citadel.org>
Tue, 16 Nov 2010 15:48:51 +0000 (10:48 -0500)
citadel/modules/xmpp/xmpp_queue.c

index 986cb2570b5e10b9af61dfce7146153c0c092bfc..77ce80343ece12c67e3520ed2e6d40eac0e7787c 100644 (file)
@@ -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;