Re: ZTS leak

From: Date: Tue, 30 Aug 2005 04:40:48 +0000
Subject: Re: ZTS leak
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-18545@lists.php.net to get a copy of this message
@@ -706,7 +707,6 @@
        zend_shutdown_extensions(TSRMLS_C);
        free(zend_version_info);
-       zend_shutdown_constants(TSRMLS_C);
        free(GLOBAL_FUNCTION_TABLE);
        free(GLOBAL_CLASS_TABLE);
#ifdef ZTS
Are you sure it's not leaking the global constants table with the zend_shutdown_constants() removed from zend_shutdown()? Incidently, I just opened my terminal back up and noticed the next three lines immediately following the code block above are:
zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC); zend_hash_destroy(GLOBAL_CONSTANTS_TABLE); free(GLOBAL_CONSTANTS_TABLE); Which is of course why there's no leak when zend_shutdown_constants(TSRMLS_C); is moved out of zend_shutdown().

« previous php.internals (#18545) next »