Commit 12ad825
committed
fix: fromOperator() drain loop leaks operator on error — add try/finally
Same pattern as the drainPipeline() fix in b6836a2: if op.next() throws,
op.close() was never called, leaking any spill files or open resources.1 parent b6836a2 commit 12ad825
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
828 | | - | |
829 | | - | |
830 | | - | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
831 | 835 | | |
832 | | - | |
833 | 836 | | |
834 | 837 | | |
835 | 838 | | |
| |||
0 commit comments