Module Name: src
Committed By: shm
Date: Thu Sep 7 06:40:56 UTC 2023
Modified Files:
src/libexec/httpd: bozohttpd.c
Log Message:
Fix memory leaks in bozo_cleanup
To generate a diff of this commit:
cvs rdiff -u -r1.143 -r1.144 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.143 src/libexec/httpd/bozohttpd.c:1.144
--- src/libexec/httpd/bozohttpd.c:1.143 Wed Jun 7 20:12:31 2023
+++ src/libexec/httpd/bozohttpd.c Thu Sep 7 06:40:56 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.c,v 1.143 2023/06/07 20:12:31 mrg Exp $ */
+/* $NetBSD: bozohttpd.c,v 1.144 2023/09/07 06:40:56 shm Exp $ */
/* $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $ */
@@ -2728,6 +2728,11 @@ bozo_cleanup(bozohttpd_t *httpd, bozopre
free(httpd->errorbuf);
free(httpd->getln_buffer);
free(httpd->slashdir);
+ free(httpd->bindport);
+ free(httpd->pidfile);
+ free(httpd->cgibin);
+ free(httpd->virtbase);
+ free(httpd->dynamic_content_map);
#define bozo_unconst(x) ((void *)(uintptr_t)x)
free(bozo_unconst(httpd->server_software));
free(bozo_unconst(httpd->index_html));