提交 8244e32e 编写于 作者: T Tyshawn 提交者: LINGuanRen

[BUG.FIX] fix tmp file mem leak when it comes to errors.

上级 f10f55af
......@@ -986,7 +986,9 @@ int ObTmpTenantFileStore::alloc_macro_block(const int64_t dir_id, const uint64_t
}
if (OB_FAIL(ret) && OB_NOT_NULL(t_mblk)) {
tmp_block_manager_.free_macro_block(t_mblk->get_block_id());
t_mblk->~ObTmpMacroBlock();
allocator_.free(t_mblk);
t_mblk = nullptr;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册