summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-06-21 18:07:25 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-06-21 18:07:25 +0800
commit51dade99c4158acc2d546e6ef6dff4096bc45ab7 (patch)
treec5e480e170a6271c240d94b8a5687dd51a92eeff
parent2bec3c80640f88bf027d117fda6c83abaaad9f41 (diff)
Exclude "mv_order_profile" from being memory freedHEADmaster
Since custom "mv_order_" prefixed keys needed to be freed, it would crash at checkout, hence this exemption.
-rw-r--r--request.c1
1 files changed, 1 insertions, 0 deletions
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]);