From: Noah Watkins Date: Mon, 12 Sep 2011 21:51:53 +0000 (-0700) Subject: libceph: fix parse options memory leak X-Git-Tag: Ubuntu-5.0.0-8.9~17619^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1cad78932a0d139dceff78e68808e160a224d57a;p=mirror_ubuntu-disco-kernel.git 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 Signed-off-by: Sage Weil --- 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) ceph_crypto_key_destroy(opt->key); kfree(opt->key); } + kfree(opt->mon_addr); kfree(opt); } EXPORT_SYMBOL(ceph_destroy_options);