From 02922041a679716a76bcc188caf269071b37e570 Mon Sep 17 00:00:00 2001 From: Sveinn Date: Mon, 21 Oct 2024 10:51:00 +0000 Subject: [PATCH] Update client/client.go Co-authored-by: Klaus Post --- client/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/client.go b/client/client.go index 0f4e833..e8ea07b 100644 --- a/client/client.go +++ b/client/client.go @@ -528,6 +528,7 @@ func DownloadTest(ctx context.Context, c shared.Config) (err error) { if err != nil { return err } + defer f.Close() for i := range responseDPS { _, err := shared.WriteStructAndNewLineToFile(f, responseDPS[i]) if err != nil {