1
0
Fork 0

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>
hifive-unleashed-5.1
Noah Watkins 2011-09-12 14:51:53 -07:00 committed by Sage Weil
parent c0d5f9db1c
commit 1cad78932a
1 changed files with 1 additions and 0 deletions

View File

@ -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);