Commit 01243b5
authored
Close expr_array is_typecheck_error early return leak (#5217)
When is_typecheck_error(c_type) fires after the accumulator loop has run
at least one iteration, `type` may be a freshly-allocated orphan tree
from a prior type_union call. The adjacent AST_FLAG_JUMPS_AWAY exit
correctly calls ast_free_unattached(type) before returning, but this
path did not.
Closes #52121 parent b35563f commit 01243b5
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
479 | 481 | | |
| 482 | + | |
480 | 483 | | |
481 | 484 | | |
482 | 485 | | |
| |||
0 commit comments