Other: Clean locations on teardown

This commit is contained in:
James Houlahan
2022-10-13 03:57:30 +02:00
parent a74b025de3
commit 2a97939807
2 changed files with 2 additions and 0 deletions

View File

@ -219,6 +219,7 @@ func withLocations(fn func(*locations.Locations) error) error {
// Create a new locations object that will be used to provide paths to store files.
locations := locations.New(provider, constants.ConfigName)
defer locations.Clean()
return fn(locations)
}