Commit 6b2b514
Always call archive_write_finish_entry even when copy_data fails
If copy_data throws and returns early, archive_write_finish_entry was
skipped, leaving the file handle open. On Windows this blocks unlink()
in the test cleanup. Call finish_entry unconditionally after
archive_write_header succeeds, then return if copy_data had failed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2b10439 commit 6b2b514
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
| 334 | + | |
337 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
338 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
339 | 343 | | |
340 | 344 | | |
341 | 345 | | |
| |||
0 commit comments