1
0
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:
Johannes Schlüter
2011-05-16 10:15:28 +00:00
parent cc8ecca0b3
commit 898e3095f1

View File

@@ -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");