1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00

fix file descriptor leak (make it possible to handle more than 1024

packages).
This commit is contained in:
Adrian Schröter 2009-12-01 08:46:54 +00:00
parent 133bd7a613
commit 8ed237141a

View File

@ -100,6 +100,7 @@ class Fetcher:
print >>sys.stderr, '\n'.join(pac.urllist)
sys.exit(1)
finally:
os.close(fd)
if os.path.exists(tmpfile):
os.unlink(tmpfile)