mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
One more case to handle in case of OOM, in block_alloc_resize_chunk
This commit is contained in:
parent
de4a5156e6
commit
88bf630798
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue