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:
parent
a4c6e7c816
commit
9beaccbee6
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user