diff options
author | Rob Richards <rrichards@php.net> | 2004-04-07 16:24:17 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2004-04-07 16:24:17 +0000 |
commit | e32f012e65764e3b36c2a8e38e55a07699878939 (patch) | |
tree | 76b989f8e097a49de1ce250bd0d5d463570d22cc /ext/xml/compat.c | |
parent | c534a9e782b6cf3b49932f96a485128702447ce4 (diff) | |
download | php-git-e32f012e65764e3b36c2a8e38e55a07699878939.tar.gz |
Fix bug #27821 xml_parse segfaults when xml_set_object called from class method
fix memleaks in compat.c
Diffstat (limited to 'ext/xml/compat.c')
-rw-r--r-- | ext/xml/compat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/xml/compat.c b/ext/xml/compat.c index e6590c6987..396393ee51 100644 --- a/ext/xml/compat.c +++ b/ext/xml/compat.c @@ -232,6 +232,7 @@ _comment_handler(void *user, const xmlChar *comment) _build_comment(comment, xmlStrlen(comment), &d_comment, &d_comment_len); parser->h_default(parser->user, d_comment, d_comment_len); + xmlFree(d_comment); } } @@ -257,6 +258,7 @@ _get_entity(void *user, const xmlChar *name) _build_entity(name, xmlStrlen(name), &entity, &len); parser->h_default(parser->user, (const xmlChar *) entity, len); + xmlFree(entity); } return NULL; |