Just to be clean and to avoid piling up unused resources. In some cases
we already did so, in one we were using the with statement. Now the
remaining perform the close as well.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
content = f.read(len - 2)
caps.append(PCICapability(id, cap, len, flags, content,
msix_address))
+ f.close()
return caps
f.seek(struct_len - offset, os.SEEK_CUR)
+ f.close()
return ioapics
f.seek(struct_len - offset, os.SEEK_CUR)
+ f.close()
return units, regions