cli; Fix a memory leak in findModulesDirectory() (#718)
This commit is contained in:
parent
186a8c7c13
commit
6ab4abe9e3
@ -108,7 +108,6 @@ static void findModulesDirectory()
|
|||||||
{
|
{
|
||||||
pathNormalize(modulesDirectory);
|
pathNormalize(modulesDirectory);
|
||||||
wrenModulesDirectory = modulesDirectory;
|
wrenModulesDirectory = modulesDirectory;
|
||||||
pathFree(lastPath);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,6 +127,7 @@ static void findModulesDirectory()
|
|||||||
lastPath = thisPath;
|
lastPath = thisPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pathFree(lastPath);
|
||||||
pathFree(searchDirectory);
|
pathFree(searchDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user