diff options
author | Noah Watkins <noahwatkins@gmail.com> | 2011-09-12 17:51:53 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-09-16 12:19:53 -0400 |
commit | 1cad78932a0d139dceff78e68808e160a224d57a (patch) | |
tree | 04e9f05e82dfdb79b3b8de10962d4ae0aba06e32 /net/ceph/ceph_common.c | |
parent | c0d5f9db1c7d1b8a9e2f217706e8ea233bac2754 (diff) |
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>
Diffstat (limited to 'net/ceph/ceph_common.c')
-rw-r--r-- | net/ceph/ceph_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index 132963abc266..2883ea01e680 100644 --- a/net/ceph/ceph_common.c +++ b/net/ceph/ceph_common.c | |||
@@ -232,6 +232,7 @@ void ceph_destroy_options(struct ceph_options *opt) | |||
232 | ceph_crypto_key_destroy(opt->key); | 232 | ceph_crypto_key_destroy(opt->key); |
233 | kfree(opt->key); | 233 | kfree(opt->key); |
234 | } | 234 | } |
235 | kfree(opt->mon_addr); | ||
235 | kfree(opt); | 236 | kfree(opt); |
236 | } | 237 | } |
237 | EXPORT_SYMBOL(ceph_destroy_options); | 238 | EXPORT_SYMBOL(ceph_destroy_options); |