mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 06:08:41 +01:00
cli; Fix a memory leak in findModulesDirectory() (#718)
This commit is contained in:
committed by
underscorediscovery
parent
186a8c7c13
commit
6ab4abe9e3
@ -108,7 +108,6 @@ static void findModulesDirectory()
|
||||
{
|
||||
pathNormalize(modulesDirectory);
|
||||
wrenModulesDirectory = modulesDirectory;
|
||||
pathFree(lastPath);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -128,6 +127,7 @@ static void findModulesDirectory()
|
||||
lastPath = thisPath;
|
||||
}
|
||||
|
||||
pathFree(lastPath);
|
||||
pathFree(searchDirectory);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user