diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-07 13:09:10 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-07 13:09:10 +0800 |
commit | bbda409c41098831ea48689145a44b8a6eaf6b20 (patch) | |
tree | ef86996aaf7f403193b1ea68313d7090fe23bb37 | |
parent | 254078e4279addf0a9c97dcacbf750522cc9cfcd (diff) |
Free the profile when freeing order
-rw-r--r-- | ord.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -83,6 +83,8 @@ void interchange_ord_checkout(const struct interchange_ord_order *order, const s void interchange_ord_free(struct interchange_ord_order *order) { + if (order->profile) + free(order->profile); for (size_t i = 0; i < order->nitems; i++) interchange_free_product(order->items[i]->product); } |