to issue<54566685>:fix spicursor destruct core when fail to allocate memory for spicusor
This commit is contained in:
@ -3745,7 +3745,7 @@ int ObSPIService::spi_cursor_open(ObPLExecCtx *ctx,
|
|||||||
}
|
}
|
||||||
OX (spi_cursor->row_store_.finish_add_row())
|
OX (spi_cursor->row_store_.finish_add_row())
|
||||||
OX (cursor->open(spi_cursor));
|
OX (cursor->open(spi_cursor));
|
||||||
if (OB_FAIL(ret)) {
|
if (OB_FAIL(ret) && OB_NOT_NULL(spi_cursor)) {
|
||||||
spi_cursor->~ObSPICursor();
|
spi_cursor->~ObSPICursor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user