Browse Source

(php_setlocale) Fixed memory leak (bug #3105).


			
			
				PHP-4.0.5
			
			
		
Jouni Ahto 27 years ago
parent
commit
9a07df6c4a
  1. 2
      ext/standard/string.c

2
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);

Loading…
Cancel
Save