fix core: Observer crash due to incorrect assessment of allocated buffer in deserialization of ObDynamicSamplePieceMsg.
This commit is contained in:
parent
1d691e0d14
commit
e97d5f54bc
@ -93,7 +93,7 @@ OB_DEF_DESERIALIZE(ObDynamicSamplePieceMsg)
|
||||
}
|
||||
} else {
|
||||
void *tmp_buf = arena_.alloc(sizeof(ObChunkDatumStore));
|
||||
if (OB_ISNULL(buf)) {
|
||||
if (OB_ISNULL(tmp_buf)) {
|
||||
ret = OB_ALLOCATE_MEMORY_FAILED;
|
||||
LOG_WARN("allocate memory failed", K(ret));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user