diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-06-01 10:37:40 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-06-01 16:56:02 -0700 |
commit | 205475679a74fe40b63a1c7f41110fdb64daa8b9 (patch) | |
tree | 08c40894f919e89d37df0ca9a27bffb209912a15 /fs/ceph | |
parent | 13a4214cd9ec14d7b77e98bd3ee51f60f868a6e5 (diff) | |
download | kernel_samsung_crespo-205475679a74fe40b63a1c7f41110fdb64daa8b9.zip kernel_samsung_crespo-205475679a74fe40b63a1c7f41110fdb64daa8b9.tar.gz kernel_samsung_crespo-205475679a74fe40b63a1c7f41110fdb64daa8b9.tar.bz2 |
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/mon_client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/mon_client.c b/fs/ceph/mon_client.c index 21c62e9..07a5399 100644 --- a/fs/ceph/mon_client.c +++ b/fs/ceph/mon_client.c @@ -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) |