From d487d9b6d9961929f274ffc1ac9bb393923299bd Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ Date: Fri, 26 May 2023 10:38:43 +0800 Subject: Item options are freed too --- request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- cgit v1.3