From 9beaccbee6b9e3356e04887c2f3e3f6e8d781228 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Wed, 29 Jul 2009 08:02:57 +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/booster-fd.c') 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