aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pacman.nim b/src/pacman.nim
index ecec5dc..b8c62b5 100644
--- a/src/pacman.nim
+++ b/src/pacman.nim
@@ -376,6 +376,8 @@ proc obtainPacmanConfig*(args: seq[Argument]): PacmanConfig =
pgpKeyserver = some(line[9 .. ^1].strip)
except:
discard
+ finally:
+ file.close()
pgpKeyserver)
let config = PacmanConfig(rootOption: root, dbOption: db, gpgOption: gpg,