diff options
author | Xinchen Hui <laruence@php.net> | 2015-01-21 12:03:19 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-01-21 12:03:19 +0800 |
commit | fa06343d7e0e04f4a660218f6dbb7ce18c3f090b (patch) | |
tree | b22f151624c9abd7feaaa7f2d4911f0aef86409f | |
parent | 88e88426dfd75c12d209927c8d0db22c762af3a8 (diff) | |
download | php-git-fa06343d7e0e04f4a660218f6dbb7ce18c3f090b.tar.gz |
Fixed valgrind reported issue with setlocale
-rw-r--r-- | ext/standard/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index dc69a8a3ac..6d5b1f223e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4550,7 +4550,7 @@ PHP_FUNCTION(setlocale) } if (len == loc->len && !memcmp(loc->val, retval, len)) { BG(locale_string) = zend_string_copy(loc); - RETURN_STR(BG(locale_string)); + RETURN_STR(zend_string_copy(BG(locale_string))); } else { BG(locale_string) = zend_string_init(retval, len, 0); zend_string_release(loc); |