roc/src/unbundle
Richard Feldman 117448f347
Fix double-close crash in downloadToFile error handling
When HTTP fetch or flush failed, the code explicitly closed the file
and deleted it before returning an error. But returning an error also
triggered the errdefer block which tried to close the file again,
causing a crash on Windows where CloseHandle asserts success.

The fix removes the explicit close/delete calls in error paths since
the errdefer already handles cleanup. The errdefer pattern is the
correct way to handle this - it ensures cleanup happens exactly once
whether we return normally or with an error.
2025-12-13 17:51:14 -05:00
..
download.zig Fix double-close crash in downloadToFile error handling 2025-12-13 17:51:14 -05:00
mod.zig Add unbundle tests 2025-08-15 14:14:47 -04:00
test_unbundle.zig Add test reproducing double-close crash in downloadToFile 2025-12-13 17:49:34 -05:00
unbundle.zig Delete a ton of unused arguments 2025-12-04 01:45:48 -05:00