summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r--fdisks/fdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index db3b29870..3e0d75205 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -193,7 +193,7 @@ void change_partition_type(struct fdisk_context *cxt)
_("Type of partition %zu is unchanged: %s."),
i + 1, old);
- fdisk_free_partition(pa);
+ fdisk_unref_partition(pa);
}
void list_disk_geometry(struct fdisk_context *cxt)