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

This commit is contained in:
obdev
2024-02-09 16:57:15 +00:00
committed by ob-robot
parent f44ef61bc2
commit f602dde27d

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();
}
}