[asterisk-commits] eliel: branch group/appdocsxml r135594 - /team/group/appdocsxml/main/xml.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 4 18:22:09 CDT 2008


Author: eliel
Date: Mon Aug  4 18:22:08 2008
New Revision: 135594

URL: http://svn.digium.com/view/asterisk?view=rev&rev=135594
Log:
Use xmlFree() to free elements allocated by libxml2 instead of just free().


Modified:
    team/group/appdocsxml/main/xml.c

Modified: team/group/appdocsxml/main/xml.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/main/xml.c?view=diff&rev=135594&r1=135593&r2=135594
==============================================================================
--- team/group/appdocsxml/main/xml.c (original)
+++ team/group/appdocsxml/main/xml.c Mon Aug  4 18:22:08 2008
@@ -95,14 +95,14 @@
 void ast_xml_free_attr(ast_xml_attr *attribute)
 {
 	if (attribute) {
-		free(attribute);
+		xmlFree(attribute);
 	}
 }
 
 void ast_xml_free_text(ast_xml_text *text)
 {
 	if (text) {
-		free(text);
+		xmlFree(text);
 	}
 }
 




More information about the asterisk-commits mailing list