diff options
author | Dan Carpenter <error27@gmail.com> | 2010-07-08 16:49:38 +0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-07-08 19:03:24 +0400 |
commit | b0bbb0be8f7fbf6d366b359e034c78a96c4e274d (patch) | |
tree | cc3f2c6c33a49eae3880165def5a13e1af23b0ed /fs/ceph | |
parent | 22b1de06c9fe128ca3de72560c3e8c2cabf2927a (diff) | |
download | linux-b0bbb0be8f7fbf6d366b359e034c78a96c4e274d.tar.xz |
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/ceph')
-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 50ce64ebd330..277f8b339577 100644 --- a/fs/ceph/osdmap.c +++ b/fs/ceph/osdmap.c @@ -568,6 +568,7 @@ struct ceph_osdmap *osdmap_decode(void **p, void *end) if (ev > CEPH_PG_POOL_VERSION) { pr_warning("got unknown v %d > %d of ceph_pg_pool\n", ev, CEPH_PG_POOL_VERSION); + kfree(pi); goto bad; } __decode_pool(p, pi); |