fix #72206 (xml_parser_create/xml_parser_free leaks mem)

This commit is contained in:
Joe Watkins 2016-05-14 08:10:16 +01:00
parent 3684d41172
commit 4a42fbbbc7

View File

@ -1569,9 +1569,10 @@ PHP_FUNCTION(xml_parser_free)
RETURN_FALSE;
}
res = Z_RES(parser->index);
ZVAL_UNDEF(&parser->index);
zend_list_close(res);
if (zend_list_delete(Z_RES(parser->index)) == FAILURE) {
RETURN_FALSE;
}
RETURN_TRUE;
}
/* }}} */