From bf93ef3c5d352f68d718e48ab2b5037b8b369413 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Wed, 29 Jul 2009 08:03:24 +0000 Subject: booster: Fix fd leak due to incorrect NULL check 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-fd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'booster/src') diff --git a/booster/src/booster-fd.c b/booster/src/booster-fd.c index 78cde44ddab..b74bd6fa6e4 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); } -- cgit