mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Add missing close when reading CSV file
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
99baea9d51
commit
d8109dc49b
@ -87,6 +87,8 @@ func ParseFile(logger *logrus.Logger, filename string) ([]*MountSpec, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to open %v for reading: %v", filename, err)
|
||||
}
|
||||
defer csvFile.Close()
|
||||
|
||||
return parseCSVFromReader(logger, csvFile), nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user