From 51dade99c4158acc2d546e6ef6dff4096bc45ab7 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: Wed, 21 Jun 2023 18:07:25 +0800 Subject: Exclude "mv_order_profile" from being memory freed Since custom "mv_order_" prefixed keys needed to be freed, it would crash at checkout, hence this exemption. --- request.c | 1 + 1 file changed, 1 insertion(+) diff --git a/request.c b/request.c index 5f0f240..27acc4d 100644 --- a/request.c +++ b/request.c @@ -182,6 +182,7 @@ void request(void (*handler)(interchange_response *), void (*callback)(void *), || !strcmp(pair[0], "mv_item_option")) free((void *)pair[1]); else if (!strncmp(pair[0], "mv_order_", 9) + && strcmp(pair[0], "mv_order_profile") && strcmp(pair[0], "mv_order_quantity") && strcmp(pair[0], "mv_order_item")) { free((void *)pair[0]); -- cgit v1.2.3