projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0d5f9d
)
libceph: fix parse options memory leak
author
Noah Watkins
<noahwatkins@gmail.com>
Mon, 12 Sep 2011 21:51:53 +0000
(14:51 -0700)
committer
Sage 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ceph/ceph_common.c
b/net/ceph/ceph_common.c
index 132963abc266282db76a7268f96257fec2d76627..2883ea01e68018fcefad3e02cd412e48a8799dc6 100644
(file)
--- 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);