summaryrefslogtreecommitdiffstats
path: root/booster
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-07-29 08:03:24 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-29 15:23:02 -0700
commitbf93ef3c5d352f68d718e48ab2b5037b8b369413 (patch)
treef3c2923cd119d1c2c7f21c990a8fd1f8a1c6f707 /booster
parente097c572b82a9c24b33d9eb00b87204ba44d6267 (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')
-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 78cde44..b74bd6f 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);
}