sfdisk: fix resources leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
1630e65371
commit
8207f99b7a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue