From 70dcbc67382084d924d353f9c741cd8c0e46cb0f Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 12 Aug 2025 22:02:18 -0500 Subject: mem leak oops --- src/net/util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net') 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; } -- cgit v1.2.3