tony2001                Mon Jun 20 15:59:21 2005 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src/main       main.c 
  Log:
  MFH: reorder and prevent memleak: bailout after free() 
  
  
http://cvs.php.net/diff.php/php-src/main/main.c?r1=1.604.2.17&r2=1.604.2.18&ty=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.604.2.17 php-src/main/main.c:1.604.2.18
--- php-src/main/main.c:1.604.2.17      Sat May 21 14:26:27 2005
+++ php-src/main/main.c Mon Jun 20 15:59:21 2005
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: main.c,v 1.604.2.17 2005/05/21 18:26:27 rasmus Exp $ */
+/* $Id: main.c,v 1.604.2.18 2005/06/20 19:59:21 tony2001 Exp $ */
 
 /* {{{ includes
  */
@@ -778,8 +778,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

Reply via email to