[CP] fix memory leak

This commit is contained in:
obdev 2022-11-25 11:35:32 +00:00 committed by wangzelin.wzl
parent 38717064ee
commit fe0de4b0d5

View File

@ -1624,6 +1624,12 @@ int ObTransformSubqueryCoalesce::coalesce_update_assignment(ObDMLStmt *stmt, boo
LOG_WARN("failed to adjust subquery list", K(ret));
}
}
for (int64_t i = 0; i < coalesce_infos.count(); i++) {
if (coalesce_infos.at(i) != NULL) {
coalesce_infos.at(i)->~StmtCompareHelper();
coalesce_infos.at(i) = NULL;
}
}
}
return ret;
}