efree() cannot be used in GSHUTDOWN
#if HAVE_MBREGEX
php_mb_regex_globals_free(mbstring_globals->mb_regex_globals);
#endif
- if (mbstring_globals->last_used_encoding_name) {
- efree(mbstring_globals->last_used_encoding_name);
- }
}
/* }}} */
MBSTRG(http_input_identify_cookie) = NULL;
MBSTRG(http_input_identify_string) = NULL;
+ if (MBSTRG(last_used_encoding_name)) {
+ efree(MBSTRG(last_used_encoding_name));
+ MBSTRG(last_used_encoding_name) = NULL;
+ }
+
/* clear overloaded function. */
if (MBSTRG(func_overload)){
p = &(mb_ovld[0]);