comparison mcabber/src/jab_iq.c @ 1340:2031f4b2cced

Fix a small memory leak
author Mikael Berthe <mikael@lilotux.net>
date Sat, 03 Nov 2007 15:27:24 +0100
parents f8cfa22cedc2
children 26d1dd2c948f
comparison
equal deleted inserted replaced
1339:1ea5a4cf2ae0 1340:2031f4b2cced
662 662
663 // Get the vCard node 663 // Get the vCard node
664 ansqry = xmlnode_get_tag(xml_result, "vCard"); 664 ansqry = xmlnode_get_tag(xml_result, "vCard");
665 if (!ansqry) { 665 if (!ansqry) {
666 scr_LogPrint(LPRINT_LOGNORM, "Empty IQ:vCard result!"); 666 scr_LogPrint(LPRINT_LOGNORM, "Empty IQ:vCard result!");
667 g_free(buf);
667 return 0; 668 return 0;
668 } 669 }
669 670
670 // bjid should really be the "bare JID", let's strip the resource 671 // bjid should really be the "bare JID", let's strip the resource
671 p = strchr(bjid, JID_RESOURCE_SEPARATOR); 672 p = strchr(bjid, JID_RESOURCE_SEPARATOR);