]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: fix ref-counting for the script
authorKarel Zak <kzak@redhat.com>
Tue, 4 Feb 2020 14:54:53 +0000 (15:54 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 4 Feb 2020 14:54:53 +0000 (15:54 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.c

index e08862aa884de6693a143bc8d8f943662fa0c051..1c5160c73af21df1326a63ddbe35eba0e0864e7d 100644 (file)
@@ -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;
 }