]> 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:21 +0000 (19:59 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 20 Jun 2005 19:59:21 +0000 (19:59 +0000)
main/main.c

index e07d02f0966503fd111fa9eb97c43c583aa426f6..49bf3d9cbfd878787385f44c067e7597996a19f6 100644 (file)
@@ -778,8 +778,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;