From 150728762b9673f8cbbe863fcc4bb8e04fbc8db8 Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ Date: Thu, 22 Sep 2022 19:31:54 +0800 Subject: Free the signature --- shopify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shopify.c b/shopify.c index acd5ef6..12e02fb 100644 --- a/shopify.c +++ b/shopify.c @@ -362,10 +362,12 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, l8w8jwt_base64_encode(1, hmacsha256, hmacsha256_len, &sig, &sig_len); if (strncmp(++last_dot, sig, sig_len)) { + free(sig); free(session_token); free(shop); return MHD_NO; } + free(sig); } char *host = NULL; -- cgit v1.3