Module Name:    src
Committed By:   elric
Date:           Sat Jan  2 20:35:59 UTC 2016

Modified Files:
        src/libexec/httpd: bozohttpd.c

Log Message:
Fix bug in cleanup of reply headers.


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/libexec/httpd/bozohttpd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/httpd/bozohttpd.c
diff -u src/libexec/httpd/bozohttpd.c:1.78 src/libexec/httpd/bozohttpd.c:1.79
--- src/libexec/httpd/bozohttpd.c:1.78	Sat Jan  2 18:40:13 2016
+++ src/libexec/httpd/bozohttpd.c	Sat Jan  2 20:35:59 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: bozohttpd.c,v 1.78 2016/01/02 18:40:13 elric Exp $	*/
+/*	$NetBSD: bozohttpd.c,v 1.79 2016/01/02 20:35:59 elric Exp $	*/
 
 /*	$eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $	*/
 
@@ -347,6 +347,8 @@ bozo_clean_request(bozo_httpreq_t *reque
 		free(ohdr);
 		ohdr = hdr;
 	}
+	free(ohdr);
+	ohdr = NULL;
 	for (hdr = SIMPLEQ_FIRST(&request->hr_replheaders); hdr;
 	    hdr = SIMPLEQ_NEXT(hdr, h_next)) {
 		free(hdr->h_value);

Reply via email to