From: Dmitry Stogov Date: Wed, 13 Jun 2018 23:38:39 +0000 (+0300) Subject: Fixed invalid free introduced by d6e81f0bfd0cb90586dd83d4fd47a4302605261a (avoid... X-Git-Tag: php-7.2.8RC1~27^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11507c0e1bfa17a96480f3648397f6975c31551e;p=php Fixed invalid free introduced by d6e81f0bfd0cb90586dd83d4fd47a4302605261a (avoid keeping "invalid" pointer) --- diff --git a/ext/mysqlnd/mysqlnd_connection.c b/ext/mysqlnd/mysqlnd_connection.c index e77e3c1fb4..2f458149a6 100644 --- a/ext/mysqlnd/mysqlnd_connection.c +++ b/ext/mysqlnd/mysqlnd_connection.c @@ -684,6 +684,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, connect)(MYSQLND_CONN_DATA * conn, conn->unix_socket.s = NULL; goto err; } + conn->unix_socket.s = NULL; } {