felipe          Tue Jul 29 16:51:22 2008 UTC

  Modified files:              
    /php-src/ext/standard       string.c 
  Log:
  - Fix memory leak
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.677&r2=1.678&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.677 php-src/ext/standard/string.c:1.678
--- php-src/ext/standard/string.c:1.677 Tue Jul 22 01:05:55 2008
+++ php-src/ext/standard/string.c       Tue Jul 29 16:51:21 2008
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.677 2008/07/22 01:05:55 scottmac Exp $ */
+/* $Id: string.c,v 1.678 2008/07/29 16:51:21 felipe Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -7842,7 +7842,7 @@
        }
        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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to