dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Dan Carpenter 2010-07-08 14:49:38 +02:00 committed by Sage Weil
parent 22b1de06c9
commit b0bbb0be8f
1 changed files with 1 additions and 0 deletions

View File

@ -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);