aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@poolp.org>2016-05-04 11:19:20 +0200
committergilles <gilles@poolp.org>2016-05-04 11:19:20 +0200
commit4efc9292107dd81a3f0c556fc9eede3e64cd3070 (patch)
treea6bea162a3ab9e5ca80ed5e92ff402853951f4e6
parentsync with OpenBSD: (diff)
downloadOpenSMTPD-4efc9292107dd81a3f0c556fc9eede3e64cd3070.tar.xz
OpenSMTPD-4efc9292107dd81a3f0c556fc9eede3e64cd3070.zip
plug memory and descriptor leak
-rw-r--r--smtpd/filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/smtpd/filter.c b/smtpd/filter.c
index c927e855..13f95c71 100644
--- a/smtpd/filter.c
+++ b/smtpd/filter.c
@@ -297,6 +297,8 @@ filter_event(uint64_t id, int event)
if (event == EVENT_DISCONNECT) {
io_clear(&s->iev);
iobuf_clear(&s->ibuf);
+ if (s->ofile)
+ fclose(s->ofile);
free(s);
}
}