diff options
-rw-r--r-- | libfdisk/src/gpt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index f300d3a1b..75e1e1435 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -1154,8 +1154,10 @@ void gpt_list_table(struct fdisk_context *cxt, continue; sizestr = size_to_human_string(SIZE_SUFFIX_1LETTER, size * cxt->sector_size); - if (!sizestr) + if (!sizestr) { + free(name); continue; + } t = fdisk_get_partition_type(cxt, i); |