diff options
author | Karel Zak | 2014-09-01 14:44:39 +0200 |
---|---|---|
committer | Karel Zak | 2014-09-01 14:44:39 +0200 |
commit | 9138d6f9727b02197dfbdda7e6ac815e91244e32 (patch) | |
tree | 7a81bc540aba3f53309050ce62a9d374b61ca6c1 /libfdisk/src/context.c | |
parent | libfdisk: (gpt) don't align last possible LBA (diff) | |
download | kernel-qcow2-util-linux-9138d6f9727b02197dfbdda7e6ac815e91244e32.tar.gz kernel-qcow2-util-linux-9138d6f9727b02197dfbdda7e6ac815e91244e32.tar.xz kernel-qcow2-util-linux-9138d6f9727b02197dfbdda7e6ac815e91244e32.zip |
libfdisk: add functions to apply partitiong scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/context.c')
-rw-r--r-- | libfdisk/src/context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libfdisk/src/context.c b/libfdisk/src/context.c index 2dcb1fc21..493114546 100644 --- a/libfdisk/src/context.c +++ b/libfdisk/src/context.c @@ -317,8 +317,10 @@ static void reset_context(struct fdisk_context *cxt) cxt->firstsector_bufsz = 0; fdisk_zeroize_device_properties(cxt); + fdisk_unref_script(cxt->script); cxt->label = NULL; + cxt->script = NULL; } /* |