diff options
-rw-r--r-- | interchange.c | 2 | ||||
-rw-r--r-- | interchange.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/interchange.c b/interchange.c index 8a70bbb..223e3c1 100644 --- a/interchange.c +++ b/interchange.c @@ -74,6 +74,8 @@ void interchange_product(const char *sku, void (*handler)(interchange_response * void interchange_clear_product(struct interchange_product *product) { + if (product->image_large) + free(product->image_large); if (product->crosssell) for (size_t i = 0; i < product->crosssell->length; i++) free(product->crosssell->skus[i]); diff --git a/interchange.h b/interchange.h index ff2c9c4..2c7be52 100644 --- a/interchange.h +++ b/interchange.h @@ -19,6 +19,7 @@ struct interchange_product { size_t length; char *skus[]; } *crosssell; + char *image_large; }; struct interchange_catalog { |