Fix memory overlap in MOT checkpoint SerializeInProcessTxns
This commit is contained in:
parent
25bf9a13d4
commit
2117b3960f
|
@ -927,10 +927,10 @@ bool CheckpointManager::SerializeInProcessTxns(int fd)
|
|||
return RC_ERROR;
|
||||
}
|
||||
MOT_LOG_DEBUG("SerializeInProcessTxns: wrote seg %p %lu bytes", segment, bufSize);
|
||||
}
|
||||
if (buf != nullptr) {
|
||||
free(buf);
|
||||
}
|
||||
}
|
||||
return RC_OK;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue