1
0
Fork 0

Try to fix a shutdown memory leak.

This commit is contained in:
Max Neunhoeffer 2016-05-27 00:10:07 +02:00
parent ea8cb2167c
commit b45461d56f
1 changed files with 5 additions and 0 deletions

View File

@ -1276,4 +1276,9 @@ void TRI_InitializeProcess() {
////////////////////////////////////////////////////////////////////////////////
void TRI_ShutdownProcess() {
MUTEX_LOCKER(mutexLocker, ExternalProcessesLock);
for (auto* e : ExternalProcesses) {
FreeExternal(e);
}
ExternalProcesses.clear();
}