The context_unload_partition_table() call is supposed to remove all
data from the loaded partitions about how we mapped it to existing
partitions on disk, but it should leave everything we parsed from the
definition files in place.
We mostly got this right, except for two cases:
1. new_uuid is parsed from the definition files and should stay
2. current_label is read from the existing partition table and should be
freed
p->padding_area = NULL;
p->allocated_to_area = NULL;
- p->current_uuid = p->new_uuid = SD_ID128_NULL;
+ p->current_uuid = SD_ID128_NULL;
+ p->current_label = mfree(p->current_label);
}
context->start = UINT64_MAX;