tony2001 Mon Jun 20 15:58:56 2005 EDT
Modified files:
/php-src/main main.c
Log:
reorder and prevent memleak: bailout after free()
http://cvs.php.net/diff.php/php-src/main/main.c?r1=1.633&r2=1.634&ty=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.633 php-src/main/main.c:1.634
--- php-src/main/main.c:1.633 Mon Jun 20 03:04:07 2005
+++ php-src/main/main.c Mon Jun 20 15:58:51 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.633 2005/06/20 07:04:07 sniper Exp $ */
+/* $Id: main.c,v 1.634 2005/06/20 19:58:51 tony2001 Exp $ */
/* {{{ includes
*/
@@ -775,8 +775,8 @@
/* restore memory limit */
AG(memory_limit) = PG(memory_limit);
#endif
- zend_bailout();
efree(buffer);
+ zend_bailout();
return;
}
break;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php