Skip to content

Commit 11507c0

Browse files
committed
Fixed invalid free introduced by d6e81f0 (avoid keeping "invalid" pointer)
1 parent e77077e commit 11507c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mysqlnd/mysqlnd_connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, connect)(MYSQLND_CONN_DATA * conn,
684684
conn->unix_socket.s = NULL;
685685
goto err;
686686
}
687+
conn->unix_socket.s = NULL;
687688
}
688689

689690
{

0 commit comments

Comments
 (0)