mirror of https://gitee.com/bigwinds/arangodb
Try to fix a shutdown memory leak.
This commit is contained in:
parent
ea8cb2167c
commit
b45461d56f
|
@ -1276,4 +1276,9 @@ void TRI_InitializeProcess() {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void TRI_ShutdownProcess() {
|
||||
MUTEX_LOCKER(mutexLocker, ExternalProcessesLock);
|
||||
for (auto* e : ExternalProcesses) {
|
||||
FreeExternal(e);
|
||||
}
|
||||
ExternalProcesses.clear();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue