sfdisk: fix ref-counting for the script
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
d74b16bdf1
commit
da0debad53
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue