cli; Fix a memory leak in findModulesDirectory() (#718)
This commit is contained in:
committed by
underscorediscovery
parent
186a8c7c13
commit
6ab4abe9e3
+1
-1
@@ -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