forked from luck/tmp_suning_uos_patched
libceph: fix parse options memory leak
ceph_destroy_options does not free opt->mon_addr that is allocated in ceph_parse_options. Signed-off-by: Noah Watkins <noahwatkins@gmail.com> Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
c0d5f9db1c
commit
1cad78932a
@ -232,6 +232,7 @@ void ceph_destroy_options(struct ceph_options *opt)
|
|||||||
ceph_crypto_key_destroy(opt->key);
|
ceph_crypto_key_destroy(opt->key);
|
||||||
kfree(opt->key);
|
kfree(opt->key);
|
||||||
}
|
}
|
||||||
|
kfree(opt->mon_addr);
|
||||||
kfree(opt);
|
kfree(opt);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ceph_destroy_options);
|
EXPORT_SYMBOL(ceph_destroy_options);
|
||||||
|
Loading…
Reference in New Issue
Block a user