aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net.c1
-rw-r--r--src/net/util.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/net.c b/src/net.c
index 2766781..d68da2c 100644
--- a/src/net.c
+++ b/src/net.c
@@ -710,6 +710,7 @@ void* handle_client(void *_arg){
rolling_file_parse(L, &files_idx, &body_idx, header + 4, sT, bite - header_eof - 4, file_cont);
}
+ str_free(decoded_path);
str_free(aa);
if(v != NULL){
lua_newtable(L);
diff --git a/src/net/util.c b/src/net/util.c
index 92e538b..78e3043 100644
--- a/src/net/util.c
+++ b/src/net/util.c
@@ -534,6 +534,7 @@ int percent_decode(str* input, str** _output){
//casting a long to a char pointer is a horrible idea
long c = strtol(hex->c, NULL, 16);
if(c == 0){
+ str_free(hex);
*_output = output;
return 1;
}