mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 10:39:22 +00:00
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:
1 parent
eba6bdcd3a
commit
3077b39bae
1 file changed
+1
@@ -198,6 +198,7 @@ fuse_getattr (const char *path, struct stat *st,
|
|||||||
(fs->fs_dir) (dev, path2, fuse_getattr_find_file, &ctx);
|
(fs->fs_dir) (dev, path2, fuse_getattr_find_file, &ctx);
|
||||||
|
|
||||||
grub_free (path2);
|
grub_free (path2);
|
||||||
|
free (pathname);
|
||||||
if (!ctx.file_exists)
|
if (!ctx.file_exists)
|
||||||
{
|
{
|
||||||
grub_errno = GRUB_ERR_NONE;
|
grub_errno = GRUB_ERR_NONE;
|
||||||
|
|||||||
Reference in new issue
Block a user