diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/cinema_kdms.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/cinema_kdms.cc b/src/lib/cinema_kdms.cc index dc9bfd3d7..1ec854620 100644 --- a/src/lib/cinema_kdms.cc +++ b/src/lib/cinema_kdms.cc @@ -246,6 +246,7 @@ CinemaKDMs::email ( try { email.send (c->mail_server(), c->mail_port(), c->mail_user(), c->mail_password()); } catch (...) { + boost::filesystem::remove (zip_file); if (log) { log->log ("Email content follows", LogEntry::TYPE_DEBUG_EMAIL); log->log (email.email(), LogEntry::TYPE_DEBUG_EMAIL); @@ -255,6 +256,8 @@ CinemaKDMs::email ( throw; } + boost::filesystem::remove (zip_file); + if (log) { log->log ("Email content follows", LogEntry::TYPE_DEBUG_EMAIL); log->log (email.email(), LogEntry::TYPE_DEBUG_EMAIL); |
