From 23f2810c5e750ac7ccf82622740205b7615c852b Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Wed, 9 Sep 2009 00:46:32 +0000 Subject: booster: Fix fd_t leak in pread64 Signed-off-by: Anand V. Avati BUG: 174 (booster: fd_ts, they are a leakin) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=174 --- booster/src/booster.c | 1 + 1 file changed, 1 insertion(+) diff --git a/booster/src/booster.c b/booster/src/booster.c index 28878ae63..b5a70c7db 100644 --- a/booster/src/booster.c +++ b/booster/src/booster.c @@ -685,6 +685,7 @@ pread64 (int fd, void *buf, size_t count, uint64_t offset) } else { gf_log ("booster", GF_LOG_DEBUG, "Is a booster fd"); ret = glusterfs_pread (glfs_fd, buf, count, offset); + booster_fdptr_put (glfs_fd); } return ret; -- cgit