sfdisk: fix resources leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2021-03-25 10:25:12 +01:00
parent 1630e65371
commit 8207f99b7a
1 changed files with 1 additions and 0 deletions

View File

@ -489,6 +489,7 @@ static int move_partition_data(struct sfdisk *sf, size_t partno, struct fdisk_pa
fdisk_ask_yesno(sf->cxt, _("Do you want to move partition data?"), &yes);
if (!yes) {
fdisk_info(sf->cxt, _("Leaving."));
free(devname);
return 0;
}
}