mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix #30780 (tidy segfaults on 'new tidyNode;')
This commit is contained in:
parent
d29cc93a6f
commit
f85a11f280
1 changed files with 8 additions and 6 deletions
|
@ -497,6 +497,7 @@ static void tidy_object_free_storage(void *object TSRMLS_DC)
|
||||||
zend_hash_destroy(intern->std.properties);
|
zend_hash_destroy(intern->std.properties);
|
||||||
FREE_HASHTABLE(intern->std.properties);
|
FREE_HASHTABLE(intern->std.properties);
|
||||||
|
|
||||||
|
if (intern->ptdoc) {
|
||||||
intern->ptdoc->ref_count--;
|
intern->ptdoc->ref_count--;
|
||||||
|
|
||||||
if (intern->ptdoc->ref_count <= 0) {
|
if (intern->ptdoc->ref_count <= 0) {
|
||||||
|
@ -505,6 +506,7 @@ static void tidy_object_free_storage(void *object TSRMLS_DC)
|
||||||
tidyRelease(intern->ptdoc->doc);
|
tidyRelease(intern->ptdoc->doc);
|
||||||
efree(intern->ptdoc);
|
efree(intern->ptdoc);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
efree(object);
|
efree(object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue