diff options
author | Johannes Schlüter <johannes@php.net> | 2011-05-16 10:15:28 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2011-05-16 10:15:28 +0000 |
commit | 9e5bc2c1384c850c60b23da11714fbf197d7caa1 (patch) | |
tree | 89e40926b7017d173081e7f40c6551a57623c9df /ext/mysqlnd/mysqlnd_net.c | |
parent | d257aa42ff461d77296ef889a1173c570906972b (diff) | |
download | php-git-9e5bc2c1384c850c60b23da11714fbf197d7caa1.tar.gz |
- Move the access behind the check.
# I can't find an unsafe call, but let's play safe
Diffstat (limited to 'ext/mysqlnd/mysqlnd_net.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_net.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |