mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
buffer.
This commit is contained in:
1 parent
a655c182c5
commit
31a2600267
2 files changed
+27
-3
No files matched your search
@@ -105,9 +105,10 @@ iterate_real (grub_disk_t disk, grub_disk_addr_t sector, int freebsd,
|
||||
char *partname;
|
||||
/* disk->partition != NULL as 0 < delta */
|
||||
partname = disk->partition ? grub_partition_get_name (disk->partition)
|
||||
: "";
|
||||
: 0;
|
||||
grub_util_warn (_("Discarding improperly nested partition (%s,%s,%s%d)"),
|
||||
disk->name, partname, p.partmap->name, p.number + 1);
|
||||
disk->name, partname ? : "", p.partmap->name,
|
||||
p.number + 1);
|
||||
grub_free (partname);
|
||||
#endif
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user