diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-10 08:37:36 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-10 08:37:36 +0300 |
| commit | 470cdf9833cdd83e9ea357f2831a5490ba081508 (patch) | |
| tree | 8285b43d1994e67e76a4ef6d719a0a2f9b586b78 /web/bootstrap.html | |
| parent | c49f7d292e17449b122fa54252661a9a298be9a8 (diff) | |
fix: close destination file and clean up partial copies in copyFile
- Add defer out.Close() after os.Create in copyFile to prevent fd leak.
- Remove redundant explicit out.Close() calls in error and success paths.
- Best-effort remove partially written destination file on io.Copy error.
Diffstat (limited to 'web/bootstrap.html')
0 files changed, 0 insertions, 0 deletions
