summaryrefslogtreecommitdiff
path: root/product.c
blob: 6fb70b6e47d5c2133d9a6df6139188b23420746b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdlib.h>
#include "icclient/product.h"

void icclient_product_free(struct icclient_product *product)
{
	if (product->author)
		free(product->author);
	if (product->prodgroup)
		free(product->prodgroup);
	if (product->image)
		free(product->image);
	if (product->thumb)
		free(product->thumb);
	if (product->comment)
		free(product->comment);
	if (product->description)
		free(product->description);
	free(product->sku);
	free(product);
	product = NULL;
}