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 | 898e3095f14731c22f92b5863fdaa2cac5380ba8 (patch) | |
tree | 85bb6027a05d7a5759b115017f19fe94aa31f83f | |
parent | cc8ecca0b36647302a7036a0db62b088b8a3508f (diff) | |
download | php-git-898e3095f14731c22f92b5863fdaa2cac5380ba8.tar.gz |
- Move the access behind the check.
# I can't find an unsafe call, but let's play safe
-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 42a97bf115..6821c5f205 100644 --- a/ext/mysqlnd/mysqlnd_net.c +++ b/ext/mysqlnd/mysqlnd_net.c @@ -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"); |