Skip to content

Commit e05ec94

Browse files
committed
reorder and prevent memleak: bailout after free()
1 parent 62bdbc0 commit e05ec94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,8 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
775775
/* restore memory limit */
776776
AG(memory_limit) = PG(memory_limit);
777777
#endif
778-
zend_bailout();
779778
efree(buffer);
779+
zend_bailout();
780780
return;
781781
}
782782
break;

0 commit comments

Comments
 (0)