mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
fs/fat: Fix codepath to properly free on error.
Found by: Coverity scan.
This commit is contained in:
1 parent
faad548ce3
commit
83543f937a
1 file changed
+1
-1
+1
-1
@@ -1136,7 +1136,7 @@ grub_fat_label (grub_device_t device, char **label)
|
||||
if (! (data->attr & GRUB_FAT_ATTR_DIRECTORY))
|
||||
{
|
||||
grub_error (GRUB_ERR_BAD_FILE_TYPE, N_("not a directory"));
|
||||
return 0;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
err = grub_fat_iterate_init (&ctxt);
|
||||
|
||||
Reference in new issue
Block a user