From bbda409c41098831ea48689145a44b8a6eaf6b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 7 Feb 2023 13:09:10 +0800 Subject: Free the profile when freeing order --- ord.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ord.c b/ord.c index 3997b61..5d2265a 100644 --- a/ord.c +++ b/ord.c @@ -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); } -- cgit v1.2.3