summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd/httpd.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2014-07-24 08:32:37 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2014-07-24 08:32:37 +0000
commit98296a2fee9bc38bd06ba8755ad6054927ac80ec (patch)
tree4ae0020f8cdd0086c9c48ff502c7dd997570bb26 /usr.sbin/httpd/httpd.c
parent36e9869cf84514017aa71f05f37510cbd8679d0b (diff)
Plug a memleak by correctly free'ing the HTTP descriptor that contains
all the headers etc. of a connection.
Diffstat (limited to 'usr.sbin/httpd/httpd.c')
-rw-r--r--usr.sbin/httpd/httpd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/httpd/httpd.c b/usr.sbin/httpd/httpd.c
index c87c2ad847e..d38b4d9e41c 100644
--- a/usr.sbin/httpd/httpd.c
+++ b/usr.sbin/httpd/httpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: httpd.c,v 1.6 2014/07/23 23:10:27 reyk Exp $ */
+/* $OpenBSD: httpd.c,v 1.7 2014/07/24 08:32:36 reyk Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
@@ -720,8 +720,6 @@ kv_purge(struct kvtree *keys)
void
kv_free(struct kv *kv)
{
- if (kv->kv_type == KEY_TYPE_NONE)
- return;
if (kv->kv_key != NULL) {
free(kv->kv_key);
}