summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--esmtp.15
-rw-r--r--local.c3
-rw-r--r--main.c7
3 files changed, 11 insertions, 4 deletions
diff --git a/esmtp.1 b/esmtp.1
index 7da7f36..e3b9431 100644
--- a/esmtp.1
+++ b/esmtp.1
@@ -15,15 +15,16 @@ esmtp
libESMTP to Sendmail compatibility interface
.SH SYNOPSIS
-.na
-.nf
\fBesmtp\fR [\fIflags\fR] [\fIaddress ...\fR]
+.br
\fBsendmail\fR [\fIflags\fR] [\fIaddress ...\fR]
\fBmailq\fR
+.br
\fBsendmail -bp\fR
\fBnewaliases\fR
+.br
\fBsendmail -I\fR
.SH DESCRIPTION
diff --git a/local.c b/local.c
index 29601d2..bd5f147 100644
--- a/local.c
+++ b/local.c
@@ -197,4 +197,7 @@ void local_cleanup(void)
if(verbose)
fprintf(stdout, "Disconnected to MDA\n");
}
+
+ if(mda)
+ free(mda);
}
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);