From fdb6565f877a33aa95afc24d937650095cbd6e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 20 Jun 2020 11:24:35 +0800 Subject: Cross-sell array of strings gets freed too --- product.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product.c b/product.c index 6fb70b6..c38ce3f 100644 --- a/product.c +++ b/product.c @@ -3,6 +3,9 @@ void icclient_product_free(struct icclient_product *product) { + if (product->crosssell) + for (size_t i = 0; i < product->crosssell->length; i++) + free(product->crosssell->skus[i]); if (product->author) free(product->author); if (product->prodgroup) -- cgit v1.2.3