Fix crash on startup due memory double-free.

Introduced in 93bbf6a42b87bd19c2e8374b52813e2b80bd3b7d
This commit is contained in:
Leonid Mashinskiy 2023-11-17 12:55:58 +03:00 committed by Maksim Moisiuk
parent 389f78f20d
commit a06265da2a

View File

@ -101,9 +101,6 @@ bool SearchAppPaths(LPCWSTR asFilePath, CEStr& rsFound, const bool abSetPath, CE
rsFound.Set(pszPath);
bFound = true;
if (pszCheck != szVal)
free(pszCheck);
// The program may require additional "%PATH%". So, if allowed...
if (abSetPath)
{