rem: if (cookie) delete (PartitionMap*)cookie;
add: if (cookie) { PartitionMapCookie *map = (PartitionMapCookie*)cookie; if (atomic_add(&map->ref_count, -1) == 1) delete map; }
context: pm_free_identify_partition_cookie(partition_data */*partition*/, void *cookie){	if (cookie)		delete (PartitionMap*)cookie;}