mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ceph: fix memory leak
kfree does not clean up indirect allocations in ceph_fs_client and ceph_options (e.g. snapdir_name). Signed-off-by: Noah Watkins <[email protected]> Signed-off-by: Sage Weil <[email protected]>
This commit is contained in:
parent
795858dbd2
commit
259a187ade
1 changed files with 2 additions and 2 deletions
|
|
@ -813,8 +813,8 @@ static struct dentry *ceph_mount(struct file_system_type *fs_type,
|
|||
fsc = create_fs_client(fsopt, opt);
|
||||
if (IS_ERR(fsc)) {
|
||||
res = ERR_CAST(fsc);
|
||||
kfree(fsopt);
|
||||
kfree(opt);
|
||||
destroy_mount_options(fsopt);
|
||||
ceph_destroy_options(opt);
|
||||
goto out_final;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue