diff options
Diffstat (limited to 'disk-utils/sfdisk.c')
-rw-r--r-- | disk-utils/sfdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index 821b5ed15..ad0e17e21 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -725,7 +725,7 @@ static int command_parttype(struct sfdisk *sf, int argc, char **argv) else if (fdisk_set_partition_type(sf->cxt, partno - 1, type) != 0) errx(EXIT_FAILURE, _("%s: partition %zu: failed to set partition type"), devname, partno); - fdisk_free_parttype(type); + fdisk_unref_parttype(type); return write_changes(sf); } |