Commit 259a187ade45056fd44856654f78aa9e9f0f7c75

Authored by Noah Watkins
Committed by Sage Weil
1 parent 795858dbd2

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 <noahwatkins@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -813,8 +813,8 @@
813 813 fsc = create_fs_client(fsopt, opt);
814 814 if (IS_ERR(fsc)) {
815 815 res = ERR_CAST(fsc);
816   - kfree(fsopt);
817   - kfree(opt);
  816 + destroy_mount_options(fsopt);
  817 + ceph_destroy_options(opt);
818 818 goto out_final;
819 819 }
820 820