Commit 7e7ed58
fix(vcomlink, zedkube): close response body ASAP
When doing HTTP requests in loops it's a good practice to close the
response body explicitly after reading it, instead of deferring it
until the surrounding function returns. This helps to free up resources
sooner and avoid potential resource leaks, especially in bigger loops.
Signed-off-by: Paul Gaiduk <[email protected]>
(cherry picked from commit 4d88c7a)1 parent acafdf8 commit 7e7ed58
File tree
2 files changed
+2
-2
lines changed- pkg/pillar/cmd
- vcomlink
- zedkube
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
315 | 314 | | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | 415 | | |
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
422 | 421 | | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
0 commit comments