[RAPPS] Don't leak handle on success
authorPierre Schweitzer <pierre@reactos.org>
Sat, 21 Oct 2017 08:49:02 +0000 (10:49 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 21 Oct 2017 08:49:02 +0000 (10:49 +0200)
CID 1419256

base/applications/rapps/available.cpp

index fd1ba2b..6fa51ad 100644 (file)
@@ -297,6 +297,7 @@ BOOL CAvailableApps::UpdateAppsDB()
     hFind = FindFirstFileW(m_szSearchPath.GetString(), &FindFileData);
     if (hFind != INVALID_HANDLE_VALUE)
     {
+        FindClose(hFind);
         return TRUE;
     }