]> granicus.if.org Git - php/commitdiff
destroy freelist before destroying the mutexes
authorAntony Dovgal <tony2001@php.net>
Wed, 6 Dec 2006 10:49:19 +0000 (10:49 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 6 Dec 2006 10:49:19 +0000 (10:49 +0000)
Zend/zend_strtod.c

index e7414da34c910dadd5c191656382571cb5902d7a..696e124fa92002dcf2a9fa028c387487245a3f11 100644 (file)
@@ -442,6 +442,7 @@ ZEND_API int zend_startup_strtod(void) /* {{{ */
 /* }}} */
 ZEND_API int zend_shutdown_strtod(void) /* {{{ */
 {
+       destroy_freelist();
 #ifdef ZTS
        tsrm_mutex_free(dtoa_mutex);
        dtoa_mutex = NULL;
@@ -449,7 +450,6 @@ ZEND_API int zend_shutdown_strtod(void) /* {{{ */
        tsrm_mutex_free(pow5mult_mutex);
        pow5mult_mutex = NULL;
 #endif
-       destroy_freelist();
        return 1;
 }
 /* }}} */