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 /libfdisk/src/dos.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 'libfdisk/src/dos.c')
-rw-r--r-- | libfdisk/src/dos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index bcfacfc7d..5f928a7ad 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -1165,7 +1165,7 @@ static int add_partition(struct fdisk_context *cxt, size_t n, struct fdisk_parttype *t = fdisk_label_get_parttype_from_code(cxt->label, sys); fdisk_info_new_partition(cxt, n + 1, start, stop, t); - fdisk_free_parttype(t); + fdisk_unref_parttype(t); } |