mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
One more case to handle in case of OOM, in block_alloc_resize_chunk
This commit is contained in:
parent
8e8348a4b0
commit
57059d4e31
@ -99,7 +99,12 @@ mysqlnd_mempool_resize_chunk(MYSQLND_MEMORY_POOL_CHUNK * chunk, unsigned int siz
|
||||
}
|
||||
}
|
||||
} else {
|
||||
chunk->ptr = mnd_realloc(chunk->ptr, size);
|
||||
zend_uchar *new_ptr = mnd_realloc(chunk->ptr, size);
|
||||
if (!new_ptr) {
|
||||
DBG_RETURN(FAIL);
|
||||
}
|
||||
chunk->ptr = new_ptr;
|
||||
|
||||
}
|
||||
DBG_RETURN(PASS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user