fs/ntfs: Add missing free.
Found by: Coverity scan.
This commit is contained in:
parent
ca793e9c05
commit
bc0ecd7104
1 changed files with 4 additions and 1 deletions
|
@ -618,7 +618,10 @@ list_file (struct grub_ntfs_file *diro, grub_uint8_t *pos,
|
||||||
|
|
||||||
ustr = get_utf8 (np, ns);
|
ustr = get_utf8 (np, ns);
|
||||||
if (ustr == NULL)
|
if (ustr == NULL)
|
||||||
return 0;
|
{
|
||||||
|
grub_free (fdiro);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
if (namespace)
|
if (namespace)
|
||||||
type |= GRUB_FSHELP_CASE_INSENSITIVE;
|
type |= GRUB_FSHELP_CASE_INSENSITIVE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue