diff options
author | Karel Zak | 2014-08-28 12:49:16 +0200 |
---|---|---|
committer | Karel Zak | 2014-08-28 12:49:16 +0200 |
commit | c7119037f07541fb952f2989b99f89f7fc051b05 (patch) | |
tree | 5c16af16f8df1020ef6333c08a44cc3dc2172a05 /disk-utils/fdisk.c | |
parent | libfdisk: extend dump parsing function (diff) | |
download | kernel-qcow2-util-linux-c7119037f07541fb952f2989b99f89f7fc051b05.tar.gz kernel-qcow2-util-linux-c7119037f07541fb952f2989b99f89f7fc051b05.tar.xz kernel-qcow2-util-linux-c7119037f07541fb952f2989b99f89f7fc051b05.zip |
libfdisk: use reference counting for context
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.c')
-rw-r--r-- | disk-utils/fdisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 4f9d69454..c61e26399 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -74,7 +74,7 @@ int get_user_reply(struct fdisk_context *cxt, const char *prompt, if (fgets(buf, bufsz, stdin) && !rpmatch(buf)) continue; } - fdisk_free_context(cxt); + fdisk_unref_context(cxt); exit(EXIT_FAILURE); } else break; @@ -1064,6 +1064,6 @@ int main(int argc, char **argv) process_fdisk_menu(&cxt); } - fdisk_free_context(cxt); + fdisk_unref_context(cxt); return EXIT_SUCCESS; } |