sfdisk: fix ref-counting for the script

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2020-02-04 15:54:53 +01:00
parent d74b16bdf1
commit da0debad53
1 changed files with 1 additions and 0 deletions

View 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;
}