Close the file when done with it.

This commit is contained in:
Baohua Yang
2013-12-11 14:41:21 +08:00
parent 5da9376222
commit fc7c919b43
+1
View File
@@ -297,6 +297,7 @@ class CLI( Cmd ):
break
except IOError:
error( 'error reading file %s\n' % args[ 0 ] )
self.inputFile.close()
self.inputFile = None
def do_dpctl( self, line ):