util/grub-mount: Fix memory leak in fuse_getattr()
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
eba6bdcd3a
commit
3077b39bae
@ -198,6 +198,7 @@ fuse_getattr (const char *path, struct stat *st,
|
||||
(fs->fs_dir) (dev, path2, fuse_getattr_find_file, &ctx);
|
||||
|
||||
grub_free (path2);
|
||||
free (pathname);
|
||||
if (!ctx.file_exists)
|
||||
{
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user