https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b539380dac8fff5520475…
commit b539380dac8fff5520475dd98e2727e2a3ccce43
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Oct 21 10:49:02 2017 +0200
[RAPPS] Don't leak handle on success
CID 1419256
---
base/applications/rapps/available.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/base/applications/rapps/available.cpp
b/base/applications/rapps/available.cpp
index fd1ba2bce3..6fa51ad820 100644
--- a/base/applications/rapps/available.cpp
+++ b/base/applications/rapps/available.cpp
@@ -297,6 +297,7 @@ BOOL CAvailableApps::UpdateAppsDB()
hFind = FindFirstFileW(m_szSearchPath.GetString(), &FindFileData);
if (hFind != INVALID_HANDLE_VALUE)
{
+ FindClose(hFind);
return TRUE;
}