Fix a segfault in XMPP Ping support
authorMikael Berthe <mikael@lilotux.net>
Fri, 27 Apr 2007 22:31:30 +0200
changeset 1198 3a2ac3d96eed
parent 1197 6f602d3270a4
child 1199 1491a59226f4
Fix a segfault in XMPP Ping support There is no allocation in jutil_iqresult() so x must not be freed.
mcabber/src/jab_iq.c
--- a/mcabber/src/jab_iq.c	Fri Apr 27 00:37:57 2007 +0200
+++ b/mcabber/src/jab_iq.c	Fri Apr 27 22:31:30 2007 +0200
@@ -1257,7 +1257,6 @@
   xmlnode x;
   x = jutil_iqresult(xmldata);
   jab_send(jc, x);
-  xmlnode_free(x);
 }
 
 static void handle_iq_version(jconn conn, char *from, const char *id,