From: Karel Zak Date: Tue, 4 Feb 2020 14:54:53 +0000 (+0100) Subject: sfdisk: fix ref-counting for the script X-Git-Tag: v2.36-rc1~239 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da0debad5355fa39c30c9c4de73a19724de6e4b6;p=thirdparty%2Futil-linux.git sfdisk: fix ref-counting for the script Signed-off-by: Karel Zak --- diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index e08862aa88..1c5160c73a 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -1951,6 +1951,7 @@ static int command_fdisk(struct sfdisk *sf, int argc, char **argv) break; } + fdisk_set_script(sf->cxt, NULL); fdisk_unref_script(dp); return rc; }