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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Arne Redlich <arne.redlich@xxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux