Fix the problem of missing call to destructor in exception branch

This commit is contained in:
obdev
2023-02-06 23:14:21 +08:00
committed by ob-robot
parent 2a720cb1f1
commit 523201c649

View File

@ -449,6 +449,10 @@ int ObAllVirtualProxySchema::inner_open()
} else {
sql_res_ = sql_res;
}
if (OB_FAIL(ret) && sql_res != NULL) {
sql_res->~ReadResult();
sql_res = NULL;
}
}
if (OB_FAIL(ret)) {
} else if (OB_FAIL(init_convert_ctx())) {