fuse: fix memory leak in fuse_create_open
Subsystems (2)
PATCH 1/1 fuse: fix memory leak in fuse_create_open
The memory of struct fuse_file is allocated but not freed when get_create_ext return error.
Fixes 3e2b6fdbdc9a ("fuse: send security context of inode on file")
Signed-off-by yangyun <[email protected]>
--- fs/fuse/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/dir.c +1 -1
@@ -670,7 +670,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, err =get_create_ext (&args, dir, entry, mode);if (err) - goto out_put_forget_req; + goto out_free_ff; err =fuse_simple_request (fm, &args);free_ext_value (&args);
Signature · 1 line
2.33.0
Quoted 7 lines · yangyun
The memory of struct
fuse_fileis allocated but not freed whenget_create_extreturn error.Fixes 3e2b6fdbdc9a ("fuse: send security context of inode on file")Signed-off-by yangyun <[email protected]>
Thanks, applied.
Miklos