summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.c b/main.c
index 54085f2..08f094b 100644
--- a/main.c
+++ b/main.c
@@ -43,15 +43,15 @@ static void message_send(message_t *message)
{
local_init(message);
local_flush(message);
- local_cleanup();
}
else
{
local_init(message);
smtp_send(message);
local_flush(message);
- local_cleanup();
}
+
+ local_cleanup();
}
int main (int argc, char **argv)
@@ -350,6 +350,9 @@ int main (int argc, char **argv)
identities_cleanup();
done:
+ if(log_fp)
+ fclose(log_fp);
+
message_free(message);
exit(EX_OK);