]> granicus.if.org Git - php/commitdiff
- Fix memory leak
authorFelipe Pena <felipe@php.net>
Tue, 29 Jul 2008 16:51:21 +0000 (16:51 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 29 Jul 2008 16:51:21 +0000 (16:51 +0000)
ext/standard/string.c

index f5fef5a8335bc2fc1b76655daa2e887714a68cf0..7a6d15fb15b70ba7315a573e146270f80ab70e7f 100644 (file)
@@ -7842,7 +7842,7 @@ PHP_FUNCTION(money_format)
        }
        str[str_len] = 0;
 
-       RETURN_RT_STRINGL(erealloc(str, str_len + 1), str_len, 0);
+       RETURN_RT_STRINGL(erealloc(str, str_len + 1), str_len, ZSTR_AUTOFREE);
 }
 /* }}} */
 #endif