mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
fix possible crash in textContent
This commit is contained in:
parent
8fde2249c3
commit
ec605ac2ad
@ -840,10 +840,10 @@ int dom_node_text_content_read(dom_object *obj, zval **retval TSRMLS_DC)
|
||||
|
||||
if(str != NULL) {
|
||||
ZVAL_STRING(*retval, str, 1);
|
||||
xmlFree(str);
|
||||
} else {
|
||||
ZVAL_EMPTY_STRING(*retval);
|
||||
}
|
||||
xmlFree(str);
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user