mirror of
https://github.com/php/php-src.git
synced 2026-04-17 13:01:02 +02:00
- Move the access behind the check.
# I can't find an unsafe call, but let's play safe
This commit is contained in:
@@ -905,11 +905,11 @@ mysqlnd_net_init(zend_bool persistent TSRMLS_DC)
|
||||
PHPAPI void
|
||||
mysqlnd_net_free(MYSQLND_NET * const net TSRMLS_DC)
|
||||
{
|
||||
zend_bool pers = net->persistent;
|
||||
|
||||
DBG_ENTER("mysqlnd_net_free");
|
||||
|
||||
if (net) {
|
||||
zend_bool pers = net->persistent;
|
||||
|
||||
net->m.free_contents(net TSRMLS_CC);
|
||||
if (net->cmd_buffer.buffer) {
|
||||
DBG_INF("Freeing cmd buffer");
|
||||
|
||||
Reference in New Issue
Block a user