From 041cec1af863f154604f10e424e1549064ffbd05 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 22 Oct 2022 19:11:15 +0800 Subject: [PATCH] Fix thttpd_alloc.h:64:32: error: 'free' called on pointer 'hc' with nonzero offset 286 [-Werror=free-nonheap-object] Signed-off-by: Xiang Xiao --- netutils/thttpd/libhttpd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/netutils/thttpd/libhttpd.c b/netutils/thttpd/libhttpd.c index 836481e98..e040744e3 100644 --- a/netutils/thttpd/libhttpd.c +++ b/netutils/thttpd/libhttpd.c @@ -3203,7 +3203,6 @@ void httpd_destroy_conn(httpd_conn *hc) httpd_free(hc->reqhost); httpd_free(hc->hostdir); httpd_free(hc->remoteuser); - httpd_free(hc->buffer); #ifdef CONFIG_THTTPD_TILDE_MAP2 httpd_free(hc->altdir); #endif /* CONFIG_THTTPD_TILDE_MAP2 */