/* @parts: Array containing the partitions that will be freed. @nparts: Size of @parts array.  */
void mtd_free_parsed_partitions(struct mtd_partition *parts, unsigned int nparts)
/* @parts: Array containing the partitions that will be freed. @nparts: Size of @parts array.  */
void mtd_free_parsed_partitions(struct mtd_partition *parts, unsigned int nparts)
{
	int i;
	for (i = 0; i < nparts; i++)
		free((char *)parts[i].name);
	free(parts);
}