From 7d26f21876541da89b2776e1117d1c6847819027 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 22 Oct 2021 22:22:26 +0200 Subject: fix headers deallocation --- Year_3/TSDWL/webserver/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Year_3/TSDWL/webserver') diff --git a/Year_3/TSDWL/webserver/server.c b/Year_3/TSDWL/webserver/server.c index 5eedf70..fda2f14 100644 --- a/Year_3/TSDWL/webserver/server.c +++ b/Year_3/TSDWL/webserver/server.c @@ -268,7 +268,7 @@ main(int argc, char* argv[]) } for (i = 0; i < headers_num; ++i) { - free(headers + i); + free(headers[i]); } printf("[Connection closed]\n\n"); close(clientfd); -- cgit v1.2.3-18-g5258