From: Silvio Rhatto Date: Mon, 13 May 2019 13:49:25 +0000 (-0300) Subject: Close the file at loadJSON X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=48912fbbd0abc2bea414a658d2bc7019ec519b7d;p=ckandumper.git Close the file at loadJSON --- diff --git a/ckandumper b/ckandumper index 1ec05d3..0d3bd31 100755 --- a/ckandumper +++ b/ckandumper @@ -52,7 +52,8 @@ class ckandumper: def loadJSON(self, file): descriptor = open(file) - return json.load(descriptor) + data = json.load(descriptor) + file.close() def dump(self): self.ensuredir(self.dest)