diff options
author | Karel Zak | 2014-10-15 14:10:25 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-15 14:10:25 +0200 |
commit | dfc6db2a3558d2a2cedbeb381e2cc8feda41a214 (patch) | |
tree | 2d21b109a09da5aac2ec36a7ef4ccb6433203b86 /disk-utils/sfdisk.c | |
parent | libfdisk: cleanup partno API (diff) | |
download | kernel-qcow2-util-linux-dfc6db2a3558d2a2cedbeb381e2cc8feda41a214.tar.gz kernel-qcow2-util-linux-dfc6db2a3558d2a2cedbeb381e2cc8feda41a214.tar.xz kernel-qcow2-util-linux-dfc6db2a3558d2a2cedbeb381e2cc8feda41a214.zip |
libfdisk: cleanup parttype API
* add reference counting
* add functions to set allocated types
Signed-off-by: Karel Zak <kzak@redhat.com>
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); } |