mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Sage Weil <[email protected]>
This commit is contained in:
parent
c0d5f9db1c
commit
1cad78932a
1 changed files with 1 additions and 0 deletions
|
|
@ -232,6 +232,7 @@ void ceph_destroy_options(struct ceph_options *opt)
|
|||
ceph_crypto_key_destroy(opt->key);
|
||||
kfree(opt->key);
|
||||
}
|
||||
kfree(opt->mon_addr);
|
||||
kfree(opt);
|
||||
}
|
||||
EXPORT_SYMBOL(ceph_destroy_options);
|
||||
|
|
|
|||
Loading…
Reference in a new issue