Remove unused temporary files.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 4 Dec 2008 21:39:14 +0000 (21:39 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 4 Dec 2008 21:39:14 +0000 (21:39 +0000)
modprobe.py

index da311ff..2ba40d7 100644 (file)
@@ -99,6 +99,7 @@ class Modprobe():
             os.chmod(filename,0644)
             return True
         else:
             os.chmod(filename,0644)
             return True
         else:
+            os.unlink(tmpnam)
             return False
 
     def probe(self,name):
             return False
 
     def probe(self,name):