summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Year_3/TSDWL/webserver/server.c2
1 files changed, 1 insertions, 1 deletions
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);