Commit 114f3f2
committed
fix: prevent memory leak in js_setup_aggregate on init_code failure
Ensure JS_FreeContext is called when init_code throws during aggregate setup.
Previously, the context was not freed on exception, leading to a memory leak and
a potential assertion failure in JS_FreeRuntime during shutdown.1 parent db3c0c9 commit 114f3f2
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
| |||
0 commit comments