mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
MFH:
Protect the code when variable is NULL, which should never happen, but anyway, you know about "never happens" :)
This commit is contained in:
parent
cff09ba5df
commit
28c8d25dca
1 changed files with 6 additions and 4 deletions
|
@ -183,10 +183,12 @@ void
|
|||
mysqlnd_mempool_destroy(MYSQLND_MEMORY_POOL * pool TSRMLS_DC)
|
||||
{
|
||||
DBG_ENTER("mysqlnd_mempool_destroy");
|
||||
if (pool) {
|
||||
/* mnd_free will reference LOCK_access and might crash, depending on the caller...*/
|
||||
mysqlnd_mempool_free_contents(pool TSRMLS_CC);
|
||||
mnd_free(pool->arena);
|
||||
mnd_free(pool);
|
||||
}
|
||||
DBG_VOID_RETURN;
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue