hfs: fix memory leak
Found by: Coverity scan. CID: 156531
This commit is contained in:
parent
efc04d65c7
commit
8ab2675ede
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue