]> granicus.if.org Git - php/commitdiff
use libxml2 memory management throughout the file, which in turn uses the
authorSterling Hughes <sterling@php.net>
Mon, 19 May 2003 21:53:33 +0000 (21:53 +0000)
committerSterling Hughes <sterling@php.net>
Mon, 19 May 2003 21:53:33 +0000 (21:53 +0000)
PHP memory management.

ext/xml/compat.c

index c22a4c29c6770ce4f0414a24aabe15060c5f0795..94465bcaadf0756fb00b2eb22e933ffa82462fc9 100644 (file)
@@ -187,7 +187,7 @@ _build_comment(const xmlChar *data, int data_len, xmlChar **comment, int *commen
 {
        *comment_len = data_len + 6;
        
-       *comment = emalloc(*comment_len + 1);
+       *comment = xmlMalloc(*comment_len + 1);
        memcpy(*comment, "<--", 3);
        memcpy(*comment + 3, data, data_len);
        memcpy(*comment + 3 + data_len, "-->", 3);