diff options
Diffstat (limited to 'interchange.c')
-rw-r--r-- | interchange.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/interchange.c b/interchange.c index 55bbdd0..b173614 100644 --- a/interchange.c +++ b/interchange.c @@ -87,13 +87,12 @@ void interchange_free_product(struct interchange_product *product) if (product->title) free(product->title); free(product->sku); - free(product); } void interchange_free_catalog(struct interchange_catalog *catalog) { for (size_t i = 0; i < catalog->length; i++) - interchange_free_product(catalog->products[i]); + interchange_free_product(&catalog->products[i]); free(catalog); } |