sterling Fri Oct 4 12:54:57 2002 EDT Modified files: /php4/ext/standard string.c Log: fix a memory leak in implode() # kept seperate from last commit on purpose.. ;) Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.309 php4/ext/standard/string.c:1.310 --- php4/ext/standard/string.c:1.309 Fri Oct 4 12:53:14 2002 +++ php4/ext/standard/string.c Fri Oct 4 12:54:56 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.309 2002/10/04 16:53:14 sterling Exp $ */ +/* $Id: string.c,v 1.310 2002/10/04 16:54:56 sterling Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -899,6 +899,10 @@ } php_implode(delim, arr, return_value); + zval_ptr_dtor(arg1); + if (arg2) { + zval_ptr_dtor(arg2); + } } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php