to issue<54566685>:fix spicursor destruct core when fail to allocate memory for spicusor

This commit is contained in:
hanr881
2024-01-18 10:12:42 +00:00
committed by ob-robot
parent dcaa355349
commit bbd097c1e3

View File

@ -3745,7 +3745,7 @@ int ObSPIService::spi_cursor_open(ObPLExecCtx *ctx,
}
OX (spi_cursor->row_store_.finish_add_row())
OX (cursor->open(spi_cursor));
if (OB_FAIL(ret)) {
if (OB_FAIL(ret) && OB_NOT_NULL(spi_cursor)) {
spi_cursor->~ObSPICursor();
}
}