Bug 732328 - need os.close(fd) before os.remove(tmp) on expandlibs_exec.py. r=ted

This commit is contained in:
Makoto Kato 2012-03-09 11:42:36 +09:00
parent acfe99c129
commit c7ac52755f
2 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ class ExpandArgsMore(ExpandArgs):
content = ["%s\n" % obj for obj in objs]
ref = "@" + tmp
else:
os.close(fd)
os.remove(tmp)
return
self.tmp.append(tmp)

View File

@ -131,6 +131,7 @@ class ExpandArgsMore(ExpandArgs):
content = ["%s\n" % obj for obj in objs]
ref = "@" + tmp
else:
os.close(fd)
os.remove(tmp)
return
self.tmp.append(tmp)