to issue<47336750>:fix memory leak of tenant ctx

This commit is contained in:
obdev
2023-02-24 16:41:08 +00:00
committed by ob-robot
parent 4114771ff1
commit b0a216b002

View File

@ -3315,6 +3315,9 @@ int ObSPIService::spi_cursor_open(ObPLExecCtx *ctx,
}
if (OB_NOT_NULL(spi_result)) {
spi_result->end_cursor_stmt(ctx, ret);
if (!need_destruct && OB_SUCCESS != ret) {
need_destruct = true;
}
}
if (need_destruct) {
spi_result->~ObSPIResultSet();