diff options
author | José Fonseca <jrfonseca@users.sourceforge.net> | 2003-07-05 13:52:07 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@users.sourceforge.net> | 2003-07-05 13:52:07 +0000 |
commit | 44119e553ddd3ee6f660ebb93546162cde98a69e (patch) | |
tree | 505dfaac916bc8f76378fc132502b30626f29b5b | |
parent | 328c01a0775967a8726e754ca6f8790210c87d8c (diff) |
Minor fixes to the man page.
Fixed some minor memory leaks.
-rw-r--r-- | esmtp.1 | 5 | ||||
-rw-r--r-- | local.c | 3 | ||||
-rw-r--r-- | main.c | 7 |
3 files changed, 11 insertions, 4 deletions
@@ -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 @@ -197,4 +197,7 @@ void local_cleanup(void) if(verbose) fprintf(stdout, "Disconnected to MDA\n"); } + + if(mda) + free(mda); } @@ -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); |