Skip to content

Commit

Permalink
ceph: fix memory leak in statfs
Browse files Browse the repository at this point in the history
Freeing the statfs request structure when required.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Yehuda Sadeh authored and Sage Weil committed Jun 1, 2010
1 parent 13a4214 commit 2054756
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ceph/mon_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2054756

Please sign in to comment.