diff options
author | Dan Carpenter <error27@gmail.com> | 2010-07-08 08:49:38 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-07-08 11:03:24 -0400 |
commit | b0bbb0be8f7fbf6d366b359e034c78a96c4e274d (patch) | |
tree | cc3f2c6c33a49eae3880165def5a13e1af23b0ed /fs | |
parent | 22b1de06c9fe128ca3de72560c3e8c2cabf2927a (diff) |
ceph: add kfree() to error path
We leak a "pi" on this error path.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/osdmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/osdmap.c b/fs/ceph/osdmap.c index 50ce64ebd33..277f8b33957 100644 --- a/fs/ceph/osdmap.c +++ b/fs/ceph/osdmap.c | |||
@@ -568,6 +568,7 @@ struct ceph_osdmap *osdmap_decode(void **p, void *end) | |||
568 | if (ev > CEPH_PG_POOL_VERSION) { | 568 | if (ev > CEPH_PG_POOL_VERSION) { |
569 | pr_warning("got unknown v %d > %d of ceph_pg_pool\n", | 569 | pr_warning("got unknown v %d > %d of ceph_pg_pool\n", |
570 | ev, CEPH_PG_POOL_VERSION); | 570 | ev, CEPH_PG_POOL_VERSION); |
571 | kfree(pi); | ||
571 | goto bad; | 572 | goto bad; |
572 | } | 573 | } |
573 | __decode_pool(p, pi); | 574 | __decode_pool(p, pi); |