From: Johannes Schlüter Date: Mon, 16 May 2011 10:15:28 +0000 (+0000) Subject: - Move the access behind the check. X-Git-Tag: php-5.3.7RC1~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e5bc2c1384c850c60b23da11714fbf197d7caa1;p=php - Move the access behind the check. # I can't find an unsafe call, but let's play safe --- diff --git a/ext/mysqlnd/mysqlnd_net.c b/ext/mysqlnd/mysqlnd_net.c index 8c1846657d..600a650804 100644 --- a/ext/mysqlnd/mysqlnd_net.c +++ b/ext/mysqlnd/mysqlnd_net.c @@ -906,11 +906,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");