ceph: fix memory leak in statfs
Freeing the statfs request structure when required. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
13a4214cd9
commit
205475679a
@ -400,6 +400,8 @@ static void release_generic_request(struct kref *kref)
|
||||
ceph_msg_put(req->reply);
|
||||
if (req->request)
|
||||
ceph_msg_put(req->request);
|
||||
|
||||
kfree(req);
|
||||
}
|
||||
|
||||
static void put_generic_request(struct ceph_mon_generic_request *req)
|
||||
|
Loading…
Reference in New Issue
Block a user