summaryrefslogtreecommitdiff
path: root/ext/xml/compat.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2003-05-19 21:53:33 +0000
committerSterling Hughes <sterling@php.net>2003-05-19 21:53:33 +0000
commit4cf3e8f3eee57d9ded96b56fbd4ab18d561aef0a (patch)
tree15a7eb7efff33fdfcddff6ffbe78d619432e4a69 /ext/xml/compat.c
parent29eb399773955a19cc76b902956afbf20f22eaa6 (diff)
downloadphp-git-4cf3e8f3eee57d9ded96b56fbd4ab18d561aef0a.tar.gz
use libxml2 memory management throughout the file, which in turn uses the
PHP memory management.
Diffstat (limited to 'ext/xml/compat.c')
-rw-r--r--ext/xml/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xml/compat.c b/ext/xml/compat.c
index c22a4c29c6..94465bcaad 100644
--- a/ext/xml/compat.c
+++ b/ext/xml/compat.c
@@ -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);