summaryrefslogtreecommitdiff
path: root/Year_3
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-10-22 22:22:26 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-10-22 22:22:26 +0200
commit7d26f21876541da89b2776e1117d1c6847819027 (patch)
tree1812d6cf38e682b99b307f06e657ddb6c663d9e2 /Year_3
parent82fcab1848bfc1526927580e4fd2a91c5411581f (diff)
fix headers deallocation
Diffstat (limited to 'Year_3')
-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);