Skip to content

Commit

Permalink
Merge pull request #15 from isanae/handle-tracker-leak
Browse files Browse the repository at this point in the history
Handle leak in the tracker
  • Loading branch information
Silarn authored Aug 5, 2019
2 parents 19421b8 + b0a7554 commit 10071a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/usvfs_dll/hooks/ntdll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1320,13 +1320,13 @@ NTSTATUS WINAPI usvfs::hook_NtClose(HANDLE Handle)
}
}

if (GetFileType(Handle) == FILE_TYPE_DISK)
ntdllHandleTracker.erase(Handle);

PRE_REALCALL
res = ::NtClose(Handle);
POST_REALCALL

if (GetFileType(Handle) == FILE_TYPE_DISK)
ntdllHandleTracker.erase(Handle);

if (log) {
LOG_CALL().PARAM(Handle).PARAMWRAP(res);
}
Expand Down

0 comments on commit 10071a6

Please # to comment.