[stgt] [PATCH] Plug FILE-ptr leak in tgt_miscdev_init()

Arne Redlich arne.redlich at googlemail.com
Thu Mar 11 21:47:31 CET 2010


Signed-off-by: Arne Redlich <arne.redlich at googlemail.com>
---
 usr/tgtif.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/usr/tgtif.c b/usr/tgtif.c
index 1419ad2..f29c11f 100644
--- a/usr/tgtif.c
+++ b/usr/tgtif.c
@@ -370,6 +370,8 @@ static int tgt_miscdev_init(char *path, int *fd)
 		goto out;
 	}
 
+	fclose(fp);
+
 	return 0;
 out:
 	fclose(fp);
-- 
1.6.3.3



--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list