From 4cc6bd81cf2e615a73a3c3ca278d2759d703e19b Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Mon, 9 Apr 2018 02:43:23 +0300 Subject: Close gpg.conf after reading --- src/pacman.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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, -- cgit v1.2.3-70-g09d2