summaryrefslogtreecommitdiff
path: root/ord.c
diff options
context:
space:
mode:
Diffstat (limited to 'ord.c')
-rw-r--r--ord.c2
1 files changed, 2 insertions, 0 deletions
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);
}