diff options
-rw-r--r-- | client.c | 2 | ||||
-rw-r--r-- | icclient/product.h | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -151,6 +151,8 @@ void icclient_page(const char *path, size_t (*handler)(void *, size_t, size_t void icclient_freeproduct(icclient_product *product) { + if (product->author) + free(product->author); if (product->image) free(product->image); if (product->comment) diff --git a/icclient/product.h b/icclient/product.h index 4e879e0..5e78b2c 100644 --- a/icclient/product.h +++ b/icclient/product.h @@ -7,6 +7,7 @@ struct icclient_product { char *comment; char *image; double price; + char *author; }; #endif // ICCLIENT_PRODUCT_H |