Browse Source

use libxml2 memory management throughout the file, which in turn uses the

PHP memory management.
migration/unlabaled-1.3.2
Sterling Hughes 23 years ago
parent
commit
4cf3e8f3ee
  1. 2
      ext/xml/compat.c

2
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);

Loading…
Cancel
Save