From 7cc6adba7c5d7637def1a923b5631502b3a45684 Mon Sep 17 00:00:00 2001 From: jpandre Date: Tue, 9 Oct 2007 11:59:33 +0000 Subject: [PATCH] Fixed a missing inode closing --- libntfs-3g/security.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index 15449542..2861bed2 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -2994,9 +2994,11 @@ BOOL ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx, name = strrchr(dirpath, '/'); *++name = 0; dir_ni = ntfs_pathname_to_inode(scx->vol, NULL, dirpath); - if (dir_ni) + if (dir_ni) { allow = ntfs_allowed_access(scx,path, dir_ni, accesstype); + ntfs_inode_close(dir_ni); + } ntfs_free(dirpath); } return (allow); /* errno is set if not allowed */