[CP] fix the map memory leak bug in ObSQLSessionInfo::init

This commit is contained in:
hwx65 2024-03-13 14:25:29 +00:00 committed by ob-robot
parent cbe814d99d
commit 3d8640c594

View File

@ -256,6 +256,12 @@ int ObSQLSessionInfo::init(uint32_t sessid, uint64_t proxy_sessid,
refresh_temp_tables_sess_active_time();
}
}
if (OB_FAIL(ret)) {
package_state_map_.clear();
sequence_currval_map_.clear();
dblink_sequence_id_map_.clear();
contexts_map_.clear();
}
return ret;
}