projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
event_jid is a buffer, not a pointer, so don't free() it
[citadel.git]
/
citadel
/
modules
/
xmpp
/
xmpp_queue.c
diff --git
a/citadel/modules/xmpp/xmpp_queue.c
b/citadel/modules/xmpp/xmpp_queue.c
index 986cb2570b5e10b9af61dfce7146153c0c092bfc..77ce80343ece12c67e3520ed2e6d40eac0e7787c 100644
(file)
--- 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;