summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2003-07-05 13:52:07 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2003-07-05 13:52:07 +0000
commit44119e553ddd3ee6f660ebb93546162cde98a69e (patch)
tree505dfaac916bc8f76378fc132502b30626f29b5b
parent328c01a0775967a8726e754ca6f8790210c87d8c (diff)
Minor fixes to the man page.
Fixed some minor memory leaks.
-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);