From 8f806e54b24ba848c5be43e8e20966c061daa459 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: Sun, 13 Jun 2021 08:55:04 +0800 Subject: Fix changed function --- ord.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ord.c b/ord.c index a37cc84..42a5aea 100644 --- a/ord.c +++ b/ord.c @@ -41,7 +41,7 @@ void icclient_ord_order(const char *sku, const icclient_catalog *catalog, icclient_product *product = *(icclient_product **)bsearch(&key_product , products, catalog->length, sizeof(icclient_product *) , prodcmp); - icclient_product_free(key_product); + icclient_free_product(key_product); struct icclient_ord_order *order = *orderptr; icclient_ord_item *item = NULL; @@ -107,5 +107,5 @@ void icclient_ord_checkout(struct icclient_ord_order *order, void icclient_ord_free(struct icclient_ord_order *order) { for (size_t i = 0; i < order->nitems; i++) - icclient_product_free(order->items[i]->product); + icclient_free_product(order->items[i]->product); } -- cgit v1.2.3