summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-20 11:24:35 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-20 11:24:35 +0800
commitfdb6565f877a33aa95afc24d937650095cbd6e4d (patch)
tree1abab6a3c2cff6a7992abe879a76bedbacf65123
parenta3b91bf175b9d51fdd3674112e60a773f13c8ea9 (diff)
Cross-sell array of strings gets freed too
-rw-r--r--product.c3
1 files changed, 3 insertions, 0 deletions
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)