Fix memory overlap in MOT checkpoint SerializeInProcessTxns

This commit is contained in:
Vinoth Veeraraghavan 2020-11-30 20:53:25 +08:00
parent 25bf9a13d4
commit 2117b3960f
1 changed files with 3 additions and 3 deletions

View File

@ -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;
};