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

This commit is contained in:
noirauds 2014-02-17 09:47:35 +01:00
parent 88a5b002df
commit e45c1158bb

View File

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