diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-12 20:33:18 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-12 20:33:18 +0800 |
commit | cad4bca73f494b8900f78961907d7f7cdc2265b1 (patch) | |
tree | 40e0e14c62960457952962fc69cd2656c0b6bf15 /ord.c | |
parent | aca2dbad31d1c7d76f08344244013c507d657222 (diff) |
Revert "Product & order free-ers are now clearers"
This reverts commit aca2dbad31d1c7d76f08344244013c507d657222.
Diffstat (limited to 'ord.c')
-rw-r--r-- | ord.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -33,12 +33,11 @@ void interchange_ord_checkout(const char *order_profile, }}, "%s", "ord/checkout"); } -void interchange_ord_clear_order(struct interchange_ord_order *order) +void interchange_ord_free_order(struct interchange_ord_order *order) { - for (size_t i = 0; i < order->nitems; i++) - interchange_clear_product(&order->items[i].product); if (order->profile) free(order->profile); + free(order); } void interchange_ord_free_transaction(struct interchange_ord_transaction |