0007488: After creating narrative web report, some temporary files remains in /tmp

This commit is contained in:
noirauds 2014-02-17 09:48:05 +01:00
parent afd7b2c048
commit ec4aef5054

View File

@ -4581,6 +4581,7 @@ class MediaPages(BasePage):
os.write(filed, initial_image_data) os.write(filed, initial_image_data)
os.close(filed) os.close(filed)
self.report.archive.add(dest, initial_image_path) self.report.archive.add(dest, initial_image_path)
os.unlink(dest)
else: else:
filed = open(os.path.join(self.html_dir, initial_image_path), 'wb') filed = open(os.path.join(self.html_dir, initial_image_path), 'wb')
filed.write(initial_image_data) filed.write(initial_image_data)