]> granicus.if.org Git - php/commitdiff
MFH: reorder and prevent memleak: bailout after free()
authorAntony Dovgal <tony2001@php.net>
Mon, 20 Jun 2005 19:59:43 +0000 (19:59 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 20 Jun 2005 19:59:43 +0000 (19:59 +0000)
main/main.c

index 8db03b401bd8011366e02963e6036feb17f386f2..d58f748b2f8964122d7d97ec690b0eac621ad213 100644 (file)
@@ -702,8 +702,8 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
                                /* restore memory limit */
                                AG(memory_limit) = PG(memory_limit); 
 #endif
-                               zend_bailout();
                                efree(buffer);
+                               zend_bailout();
                                return;
                        }
                        break;