summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2016-02-04 22:35:17 +0000
committereric <eric@openbsd.org>2016-02-04 22:35:17 +0000
commitbcda31810d42003faa5ca12d582e5ff69c2baa6e (patch)
treead5d30bc20425aff0877391f9e0ee7e93fbccebf
parentConvert sigemptyset and sigfillset to inline functions to avoid (diff)
downloadwireguard-openbsd-bcda31810d42003faa5ca12d582e5ff69c2baa6e.tar.xz
wireguard-openbsd-bcda31810d42003faa5ca12d582e5ff69c2baa6e.zip
fix memory leak
ok gilles@ jung@
-rw-r--r--usr.sbin/smtpd/rfc2822.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/rfc2822.c b/usr.sbin/smtpd/rfc2822.c
index 06f3ec71b59..0b80f352481 100644
--- a/usr.sbin/smtpd/rfc2822.c
+++ b/usr.sbin/smtpd/rfc2822.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rfc2822.c,v 1.6 2015/12/28 22:08:30 jung Exp $ */
+/* $OpenBSD: rfc2822.c,v 1.7 2016/02/04 22:35:17 eric Exp $ */
/*
* Copyright (c) 2014 Gilles Chehade <gilles@poolp.org>
@@ -63,6 +63,7 @@ end:
break;
if (hdr_miss_cb)
TAILQ_REMOVE(&rp->hdr_miss_cb, hdr_miss_cb, next);
+ free(hdr_miss_cb);
header_reset(&rp->header);
rp->in_hdr = 0;
return;