summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")