aboutsummaryrefslogtreecommitdiff
path: root/src/net/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/util.c')
-rw-r--r--src/net/util.c1
1 files changed, 1 insertions, 0 deletions
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;
}