diff options
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_wireprotocol.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c index b9bf3b2de0..ab801cfccf 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -2319,8 +2319,10 @@ mysqlnd_net_init(zend_bool persistent TSRMLS_DC) void mysqlnd_net_free(MYSQLND_NET * net TSRMLS_DC) { - DBG_ENTER("mysqlnd_net_free"); zend_bool pers = net->persistent; + + DBG_ENTER("mysqlnd_net_free"); + if (net) { if (net->cmd_buffer.buffer) { DBG_INF("Freeing cmd buffer"); |