hfs: fix memory leak

Found by: Coverity scan.
CID: 156531
This commit is contained in:
Andrei Borzenkov 2016-01-08 11:16:56 +03:00
parent efc04d65c7
commit 8ab2675ede

View file

@ -1308,6 +1308,7 @@ grub_hfs_open (struct grub_file *file, const char *name)
if (grub_hfs_find_dir (data, name, &found, GRUB_FSHELP_REG))
{
grub_free (data);
grub_free (found);
grub_dl_unref (my_mod);
return grub_errno;
}