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