summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-26 10:38:43 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-26 10:38:43 +0800
commitd487d9b6d9961929f274ffc1ac9bb393923299bd (patch)
tree165c395dac19042bebdb7745e864619835167e89
parente6012dd5421097ac573caed332d0703078ad6edf (diff)
Item options are freed too
-rw-r--r--request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/request.c b/request.c
index 0993e25..5f0f240 100644
--- a/request.c
+++ b/request.c
@@ -178,7 +178,8 @@ void request(void (*handler)(interchange_response *), void (*callback)(void *),
curl_formadd(&post, &last, CURLFORM_COPYNAME, pair[0],
CURLFORM_COPYCONTENTS, pair[1],
CURLFORM_END);
- if (!strncmp(pair[0], "quantity", 8))
+ if (!strncmp(pair[0], "quantity", 8)
+ || !strcmp(pair[0], "mv_item_option"))
free((void *)pair[1]);
else if (!strncmp(pair[0], "mv_order_", 9)
&& strcmp(pair[0], "mv_order_quantity")