From 85eb08885b097eaa4a064ced6cdf4bd80331a097 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Schl=C3=BCter?= Date: Tue, 17 May 2011 00:16:57 +0000 Subject: [PATCH] - Move the field access behind the check # Only called from one place where the connection is checked, but # playing safe, again (parfait) --- ext/mysqlnd/mysqlnd_wireprotocol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c index 795e0cd410..ff354eec3d 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -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; -- 2.50.1