diff options
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; |