!450 MOT bug fixes

Merge pull request !450 from Vinoth Veeraraghavan/master
This commit is contained in:
opengauss-bot 2020-11-30 21:52:37 +08:00 committed by Gitee
commit 8e5bb201bf
1 changed files with 3 additions and 3 deletions

View File

@ -927,9 +927,9 @@ bool CheckpointManager::SerializeInProcessTxns(int fd)
return RC_ERROR;
}
MOT_LOG_DEBUG("SerializeInProcessTxns: wrote seg %p %lu bytes", segment, bufSize);
if (buf != nullptr) {
free(buf);
}
}
if (buf != nullptr) {
free(buf);
}
return RC_OK;
};