mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 07:06:13 +01:00
fix latent file descriptor leak in get_source_file()
This commit is contained in:
parent
d9ee2be26d
commit
5c064bc2c1
@ -1959,6 +1959,7 @@ def get_source_file(apiurl, prj, package, filename, targetfilename=None, revisio
|
||||
if not buf: break
|
||||
o.write(buf)
|
||||
o.close()
|
||||
f.close()
|
||||
|
||||
|
||||
def get_binary_file(apiurl, prj, repo, arch,
|
||||
|
Loading…
Reference in New Issue
Block a user