and fix leaking memory for str_disk_guid in case of error.
char *val, *p;
int p_count;
disk_partition_t *parts;
char *val, *p;
int p_count;
disk_partition_t *parts;
int errno = 0;
uint64_t size_ll, start_ll;
int errno = 0;
uint64_t size_ll, start_ll;
- *str_disk_guid = guid_str;
*parts_count = p_count;
*partitions = parts;
free(str);
*parts_count = p_count;
*partitions = parts;
free(str);
-free_guid:
- free(guid_str);
-free_str:
free(str);
*str_disk_guid = NULL;
free(str);
*str_disk_guid = NULL;