diff options
author | Eric Faurot <eric@faurot.net> | 2013-01-28 12:50:47 +0100 |
---|---|---|
committer | Eric Faurot <eric@faurot.net> | 2013-01-28 12:50:47 +0100 |
commit | 5a5f6350207b11210ed35fbabfb345759ad1fa60 (patch) | |
tree | 57a21fc2aeeea0c555673656c6d4931ca7539dd2 | |
parent | Merge branch 'master' into portable (diff) | |
parent | fix fd leak (diff) | |
download | OpenSMTPD-opensmtpd-201301281310p1.tar.xz OpenSMTPD-opensmtpd-201301281310p1.zip |
Merge branch 'master' into portableopensmtpd-201301281310p1
-rw-r--r-- | smtpd/mta_session.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/smtpd/mta_session.c b/smtpd/mta_session.c index ffb0cd2b..94bd2f25 100644 --- a/smtpd/mta_session.c +++ b/smtpd/mta_session.c @@ -1013,6 +1013,11 @@ mta_flush_task(struct mta_session *s, int delivery, const char *error) free(s->task); s->task = NULL; + if (s->datafp) { + fclose(s->datafp); + s->datafp = NULL; + } + stat_decrement("mta.envelope", n); stat_decrement("mta.task.running", 1); stat_decrement("mta.task", 1); |