summaryrefslogtreecommitdiff
path: root/catalog.c
blob: 6faf0eb123f693e4ed536fb5cf770a3b306223e4 (plain)
1
2
3
4
5
6
7
8
9
10
#include <stdlib.h>
#include "icclient/product.h"
#include "icclient/catalog.h"

void icclient_catalog_free(struct icclient_catalog *catalog)
{
	for (size_t i = 0; i < catalog->length; i++)
		icclient_product_free(catalog->products[i]);
	free(catalog);
}