Skip to content

Commit a06265d

Browse files
LeoMashMaximus5
authored andcommitted
Fix crash on startup due memory double-free.
Introduced in 93bbf6a
1 parent 389f78f commit a06265d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/common/WFiles.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ bool SearchAppPaths(LPCWSTR asFilePath, CEStr& rsFound, const bool abSetPath, CE
101101
rsFound.Set(pszPath);
102102
bFound = true;
103103

104-
if (pszCheck != szVal)
105-
free(pszCheck);
106-
107104
// The program may require additional "%PATH%". So, if allowed...
108105
if (abSetPath)
109106
{

0 commit comments

Comments
 (0)