diff options
author | gilles <gilles@poolp.org> | 2016-05-04 11:19:20 +0200 |
---|---|---|
committer | gilles <gilles@poolp.org> | 2016-05-04 11:19:20 +0200 |
commit | 4efc9292107dd81a3f0c556fc9eede3e64cd3070 (patch) | |
tree | a6bea162a3ab9e5ca80ed5e92ff402853951f4e6 | |
parent | sync with OpenBSD: (diff) | |
download | OpenSMTPD-4efc9292107dd81a3f0c556fc9eede3e64cd3070.tar.xz OpenSMTPD-4efc9292107dd81a3f0c556fc9eede3e64cd3070.zip |
plug memory and descriptor leak
-rw-r--r-- | smtpd/filter.c | 2 |
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); } } |