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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-22 19:11:15 +08:00 committed by Xiang Xiao
parent bc84e5eb3c
commit 041cec1af8

View File

@ -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 */