From 9a07df6c4a11e8d2669754cfc55d06ada4d21a9f Mon Sep 17 00:00:00 2001 From: Jouni Ahto Date: Wed, 5 Jan 2000 12:26:41 +0000 Subject: [PATCH] (php_setlocale) Fixed memory leak (bug #3105). # Must have been thinking something else when originally wrote this. --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index cb3a1e0ef7..f199c03b55 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2099,7 +2099,7 @@ PHP_FUNCTION(setlocale) /* Remember if locale was changed */ if (loc) { STR_FREE(BG(locale_string)); - BG(strtok_string) = estrdup(retval); + BG(locale_string) = estrdup(retval); } RETVAL_STRING(retval,1); -- 2.50.1