1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00

Fixed memory leak

This commit is contained in:
Dmitry Stogov
2006-07-04 07:26:53 +00:00
parent acb1e07980
commit d550c270ce
+4
View File
@@ -657,6 +657,10 @@ PHP_RSHUTDOWN_FUNCTION(libxml)
xmlParserInputBufferCreateFilenameDefault(NULL);
xmlOutputBufferCreateFilenameDefault(NULL);
if (LIBXML(stream_context)) {
zval_ptr_dtor(&LIBXML(stream_context));
LIBXML(stream_context) = NULL;
}
smart_str_free(&LIBXML(error_buffer));
if (LIBXML(error_list)) {
zend_llist_destroy(LIBXML(error_list));