mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix GH-20009: XMLReader leak on RelaxNG schema failure
This commit is contained in:
@@ -542,6 +542,7 @@ static void php_xmlreader_set_relaxng_schema(INTERNAL_FUNCTION_PARAMETERS, int t
|
||||
|
||||
RETURN_TRUE;
|
||||
} else {
|
||||
xmlRelaxNGFree(schema);
|
||||
php_error_docref(NULL, E_WARNING, "Schema contains errors");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user