Files
Slick Daddy 4187d164b3 fix: close HTTP response bodies and add nil guards for Primary() calls (#6930)
* Fix HTTP body leaks, nil pointer panics, and file handle cleanup

* Extract unzipFile loop body into unzipFileEntry helper

The unzipFile function had defer o.Close() and defer i.Close() inside
a for loop, which is a Go antipattern — defers are function-scoped and
wouldn't execute until unzipFile returned, leaving file handles open
across iterations. Extracting the per-file logic into unzipFileEntry
ensures each defer fires when that function returns, at the end of each
loop iteration.
2026-05-25 10:09:44 +10:00
..
2021-09-23 17:15:50 +10:00
2022-12-23 09:15:27 +11:00
2024-12-03 13:49:55 +11:00
2024-12-03 13:49:55 +11:00
2021-10-15 10:39:48 +11:00
2021-10-28 14:25:17 +11:00
2021-10-28 14:25:17 +11:00
2021-04-22 13:51:51 +10:00
2024-06-18 13:41:05 +10:00
2024-06-18 13:41:05 +10:00
2022-03-17 11:33:59 +11:00
2021-05-25 11:25:26 +10:00
2024-11-13 09:47:29 +11:00