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