summaryrefslogtreecommitdiffstats
path: root/booster/src
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-07-29 08:02:57 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-29 15:22:59 -0700
commit9beaccbee6b9e3356e04887c2f3e3f6e8d781228 (patch)
tree1b6da3b3f9a02d7afa4e86aa85fa501b37fdabdf /booster/src
parenta4c6e7c816fa9dfbed07a30af56a4ada824ce40b (diff)
booster: Fix fd leak due to incorrect NULL check
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 174 (booster: fd_ts, they are a leakin) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=174
Diffstat (limited to 'booster/src')
-rw-r--r--booster/src/booster-fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/booster/src/booster-fd.c b/booster/src/booster-fd.c
index 78cde44d..b74bd6fa 100644
--- a/booster/src/booster-fd.c
+++ b/booster/src/booster-fd.c
@@ -286,6 +286,6 @@ booster_fdptr_get (booster_fdtable_t *fdtable, int fd)
void
booster_fdptr_put (fd_t *booster_fd)
{
- if (!booster_fd)
+ if (booster_fd)
fd_unref (booster_fd);
}