summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)