mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
use FREE_ZVAL when freeing zvals
This commit is contained in:
parent
f0daa5c6d9
commit
6aaa7bc345
@ -699,7 +699,7 @@ void _xml_startElementHandler(void *userData, const char *name, const char **att
|
||||
zend_hash_add(Z_ARRVAL_P(tag),"attributes",sizeof("attributes"),&atr,sizeof(zval*),NULL);
|
||||
} else {
|
||||
zval_dtor(atr);
|
||||
efree(atr);
|
||||
FREE_ZVAL(atr);
|
||||
}
|
||||
|
||||
zend_hash_next_index_insert(Z_ARRVAL_P(parser->data),&tag,sizeof(zval*),(void *) &parser->ctag);
|
||||
|
Loading…
Reference in New Issue
Block a user