]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
libceph: fix parse options memory leak
authorNoah Watkins <noahwatkins@gmail.com>
Mon, 12 Sep 2011 21:51:53 +0000 (14:51 -0700)
committerSage Weil <sage@newdream.net>
Fri, 16 Sep 2011 16:19:53 +0000 (09:19 -0700)
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>
net/ceph/ceph_common.c

index 132963abc266282db76a7268f96257fec2d76627..2883ea01e68018fcefad3e02cd412e48a8799dc6 100644 (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);