diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-26 10:38:43 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-26 10:38:43 +0800 |
commit | d487d9b6d9961929f274ffc1ac9bb393923299bd (patch) | |
tree | 165c395dac19042bebdb7745e864619835167e89 | |
parent | e6012dd5421097ac573caed332d0703078ad6edf (diff) |
Item options are freed too
-rw-r--r-- | request.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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") |