Close the file when done with it.

This commit is contained in:
Baohua Yang authored and Baohua Yang committed 2013-12-21 21:36:22 +08:00
1 parent a6a0cb4331
commit 3780d9cda8
1 file changed
+1
+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 ):