summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2013-12-13 19:26:29 +0100
committerKarel Zak2014-03-11 11:35:12 +0100
commitd6cfa8b3270bdd866d99259f5d815de80557a3e7 (patch)
tree287f5e4e0904ffd700646177a54bc7bcd3682466 /fdisks/fdisk.c
parentlibfdisk: add support to list free space (diff)
downloadkernel-qcow2-util-linux-d6cfa8b3270bdd866d99259f5d815de80557a3e7.tar.gz
kernel-qcow2-util-linux-d6cfa8b3270bdd866d99259f5d815de80557a3e7.tar.xz
kernel-qcow2-util-linux-d6cfa8b3270bdd866d99259f5d815de80557a3e7.zip
libfdisk: add reference counting to fdisk_partition
Signed-off-by: Karel Zak <kzak@redhat.com>
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)