OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.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
|
history
diff --git
a/net/ceph/ceph_common.c
b/net/ceph/ceph_common.c
index
132963a
..
2883ea0
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);