mirror of
https://github.com/php/php-src.git
synced 2026-03-30 20:22:36 +02:00
- Move the field access behind the check
# Only called from one place where the connection is checked, but # playing safe, again (parfait)
This commit is contained in:
@@ -2380,11 +2380,10 @@ mysqlnd_protocol_init(zend_bool persistent TSRMLS_DC)
|
||||
PHPAPI void
|
||||
mysqlnd_protocol_free(MYSQLND_PROTOCOL * const protocol TSRMLS_DC)
|
||||
{
|
||||
zend_bool pers = protocol->persistent;
|
||||
|
||||
DBG_ENTER("mysqlnd_protocol_free");
|
||||
|
||||
if (protocol) {
|
||||
zend_bool pers = protocol->persistent;
|
||||
mnd_pefree(protocol, pers);
|
||||
}
|
||||
DBG_VOID_RETURN;
|
||||
|
||||
Reference in New Issue
Block a user