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
This commit is contained in:
Shehjar Tikoo 2009-07-29 08:02:57 +00:00 committed by Anand V. Avati
parent a4c6e7c816
commit 9beaccbee6

View File

@ -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);
}