summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/client.c b/client.c
index d796d6e..a1358c4 100644
--- a/client.c
+++ b/client.c
@@ -63,8 +63,7 @@ void icclient_order(icclient_ord_order **orderptr, const char *sku
strcpy(key->sku, sku);
icclient_product *product = bsearch(&key, products, catalog->length
, sizeof(icclient_product *), prodcmp);
- free(key->sku);
- free(key);
+ icclient_freeproduct(key);
icclient_ord_order *order = *orderptr;
icclient_ord_item *item = NULL;