]> 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>
Fri, 15 May 2020 09:39:22 +0000 (11:39 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.c

index c0bea7046d66021fd014ef312e023e4bace4ab06..6049b9c724d5a193d8dc81b10d0d02efe9d08d44 100644 (file)
@@ -1910,6 +1910,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;
 }