about summary refs log tree commit diff
path: root/requestHandler.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-09-26 00:56:20 +0300
committerNakidai <nakidai@disroot.org>2024-09-26 00:56:20 +0300
commitfc168593e66bfaf0aa955454168c950f761b3814 (patch)
treebe228467ba3e62577342900b6b38b8f6bc7663c2 /requestHandler.c
parentfd636de1869ab6fc08915a20dc28c348d157aa5e (diff)
downloadcptc-fc168593e66bfaf0aa955454168c950f761b3814.tar.gz
cptc-fc168593e66bfaf0aa955454168c950f761b3814.zip
Add file removing
Diffstat (limited to 'requestHandler.c')
-rw-r--r--requestHandler.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/requestHandler.c b/requestHandler.c
index 94e0aec..b8a1cb2 100644
--- a/requestHandler.c
+++ b/requestHandler.c
@@ -130,8 +130,10 @@ void CPTC_requestHandler(int fd)
             chbuf = ch;
             send(fd, &chbuf, 1, 0);
         }
-
         fclose(fp);
+        remove(in);
+        remove(filenamebuf);
+
         free(in);
         free(length);
     }