From 8a35f022276078bac4fc830bfe93a54da1fc2ac9 Mon Sep 17 00:00:00 2001 From: guangwu Date: Mon, 6 May 2024 18:07:10 +0800 Subject: [PATCH] fix: close pairsFile (#1128) --- core/import.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/import.go b/core/import.go index 8fde2ae92..15a1ec87b 100644 --- a/core/import.go +++ b/core/import.go @@ -66,6 +66,7 @@ func (hf *Hoverfly) ImportFromDisk(path string) error { if err != nil { return fmt.Errorf("Got error while opening payloads file, error %s", err.Error()) } + defer pairsFile.Close() var simulation v2.SimulationViewV5