mirror of https://gitee.com/bigwinds/arangodb
fixed memory leak
This commit is contained in:
parent
702c743a3a
commit
7cb90e675e
|
@ -530,6 +530,7 @@ void InnerThreadLoop (bool* goToSleep) {
|
||||||
|
|
||||||
result = TRI_GetGlobalTransactionFigures(stats);
|
result = TRI_GetGlobalTransactionFigures(stats);
|
||||||
if (result != TRI_ERROR_NO_ERROR) {
|
if (result != TRI_ERROR_NO_ERROR) {
|
||||||
|
TRI_Free(TRI_UNKNOWN_MEM_ZONE, stats);
|
||||||
LOG_TRACE("the index garbage collector inner loop failed due transactions figures being unavailable");
|
LOG_TRACE("the index garbage collector inner loop failed due transactions figures being unavailable");
|
||||||
*goToSleep = true;
|
*goToSleep = true;
|
||||||
return;
|
return;
|
||||||
|
@ -548,6 +549,7 @@ void InnerThreadLoop (bool* goToSleep) {
|
||||||
// ........................................................................
|
// ........................................................................
|
||||||
|
|
||||||
if (currentNode == NULL) {
|
if (currentNode == NULL) {
|
||||||
|
TRI_Free(TRI_UNKNOWN_MEM_ZONE, stats);
|
||||||
*goToSleep = true;
|
*goToSleep = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -559,6 +561,7 @@ void InnerThreadLoop (bool* goToSleep) {
|
||||||
|
|
||||||
if (!TRI_CompareIntegerUInt32 (&(currentNode->_nodeFlag),
|
if (!TRI_CompareIntegerUInt32 (&(currentNode->_nodeFlag),
|
||||||
INDEX_GC_NODE_NORMAL_FLAG) ) {
|
INDEX_GC_NODE_NORMAL_FLAG) ) {
|
||||||
|
TRI_Free(TRI_UNKNOWN_MEM_ZONE, stats);
|
||||||
*goToSleep = true;
|
*goToSleep = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -660,6 +663,7 @@ void InnerThreadLoop (bool* goToSleep) {
|
||||||
|
|
||||||
} // end of while loop
|
} // end of while loop
|
||||||
|
|
||||||
|
TRI_Free(TRI_UNKNOWN_MEM_ZONE, stats);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue