提交 c200bb06 编写于 作者: O obdev 提交者: ob-robot

fix direct load mem loader chunk mem leak

上级 11a9a638
......@@ -120,13 +120,17 @@ int ObDirectLoadMemLoader::work()
}
if (OB_SUCC(ret)) {
if (chunk != nullptr) {
if (OB_FAIL(close_chunk(chunk))) {
LOG_WARN("fail to close chunk", KR(ret));
}
if (chunk != nullptr && OB_FAIL(close_chunk(chunk))) {
LOG_WARN("fail to close chunk", KR(ret));
}
}
if (chunk != nullptr) {
chunk->~ChunkType();
ob_free(chunk);
chunk = nullptr;
}
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册