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