stmt is double-freed

This commit is contained in:
sw0
2022-01-04 19:52:15 +08:00
committed by LINxiansheng
parent 5df0c70862
commit bfa4cc4e12
2 changed files with 26 additions and 14 deletions

View File

@ -594,17 +594,7 @@ public:
return ret;
}
inline int free_stmt(ObSelectStmt* stmt)
{
int ret = common::OB_SUCCESS;
if (OB_UNLIKELY(NULL == stmt)) {
ret = OB_ERR_UNEXPECTED;
SQL_RESV_LOG(WARN, "unexpected null");
} else if (OB_FAIL(free_list_.store_obj(stmt))) {
SQL_RESV_LOG(WARN, "store stmt failed", K(ret));
}
return ret;
}
int free_stmt(ObSelectStmt *stmt);
void destory();
/**