From 150728762b9673f8cbbe863fcc4bb8e04fbc8db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= 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.2.3