From: Joe Orton Date: Fri, 22 Apr 2005 11:06:53 +0000 (+0000) Subject: Fixed bug #32797 (invalid C code in xmlrpc extension). X-Git-Tag: php-5.0.1b1~444 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c5f5697cea2b82461b2291c3cf6c6bafe1deea4;p=php Fixed bug #32797 (invalid C code in xmlrpc extension). --- diff --git a/ext/xmlrpc/libxmlrpc/xml_element.c b/ext/xmlrpc/libxmlrpc/xml_element.c index 68eb0b60e3..1016574e7a 100644 --- a/ext/xmlrpc/libxmlrpc/xml_element.c +++ b/ext/xmlrpc/libxmlrpc/xml_element.c @@ -44,6 +44,9 @@ static const char rcsid[] = "#(@) $Id$"; * 06/2000 * HISTORY * $Log$ + * Revision 1.8 2005/03/28 00:07:24 edink + * Reshufle includes to make it compile on windows + * * Revision 1.7 2005/03/26 03:13:58 sniper * - Made it possible to build ext/xmlrpc with libxml2 * @@ -116,7 +119,7 @@ static const char rcsid[] = "#(@) $Id$"; #include "queue.h" #include "encodings.h" -#define my_free(thing) if(thing) {free(thing); thing = 0;} +#define my_free(thing) if(thing) {free(thing); thing = NULL;} #define XML_DECL_START "children); Q_Destroy(&root->attrs); - my_free((char*)root->name); + if(root->name) { + free((char *)root->name); + root->name = NULL; + } simplestring_free(&root->text); my_free(root); }