aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-runserver/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc-runserver/httpd.c')
-rw-r--r--src/blogc-runserver/httpd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c
index af531b0..d95278d 100644
--- a/src/blogc-runserver/httpd.c
+++ b/src/blogc-runserver/httpd.c
@@ -190,6 +190,7 @@ handle_request(void *arg)
if (write(client_socket, contents, len) == -1) {
// do nothing, just avoid warnig
}
+ free(contents);
point3:
free(real_root);
@@ -198,6 +199,8 @@ point2:
point1:
fprintf(stderr, "[Thread-%zu] %s - - \"%s\" %d\n", thread_id + 1,
ip, conn_line, status_code);
+ free(path);
+ free(conn_line);
bc_strv_free(pieces);
point0:
free(ip);