From a588afb39545b7d2de7cf5bc1aa91686cb302f43 Mon Sep 17 00:00:00 2001 From: noirauds Date: Mon, 17 Feb 2014 09:46:54 +0100 Subject: [PATCH] 0007488: After creating narrative web report, some temporary files remains in /tmp --- src/plugins/webreport/NarrativeWeb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 71dc1a73a..9a2554446 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -4589,6 +4589,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), 'w') filed.write(initial_image_data)