summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-04-04 17:22:37 +0800
committerXinchen Hui <laruence@php.net>2012-04-04 17:22:37 +0800
commit94f1c05ff8f83b2130de21683c5c2bd3af7e065c (patch)
tree6351db88cec93be7d5dce64ff7fa694fbcdb1c72 /ext/libxml/libxml.c
parentca58cd01fc329f907a13b82370427715d9c5bf70 (diff)
downloadphp-git-94f1c05ff8f83b2130de21683c5c2bd3af7e065c.tar.gz
Fixed bug #61617 (Libxml tests failed(ht is already destroyed))
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 515d58ea6a..a17847868a 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -666,7 +666,8 @@ static int php_libxml_post_deactivate()
xmlOutputBufferCreateFilenameDefault(NULL);
if (LIBXML(stream_context)) {
- zval_ptr_dtor(&LIBXML(stream_context));
+ /* the steam_context resource will be released by resource list destructor */
+ efree(LIBXML(stream_context));
LIBXML(stream_context) = NULL;
}
smart_str_free(&LIBXML(error_buffer));