diff --git a/ext/mysql2/client.c b/ext/mysql2/client.c index 4d437b7..44e87f3 100644 --- a/ext/mysql2/client.c +++ b/ext/mysql2/client.c @@ -105,7 +105,7 @@ static VALUE nogvl_connect(void *ptr) { } static void rb_mysql_client_free(void * ptr) { - GET_CLIENT(ptr); + mysql_client_wrapper *wrapper = (mysql_client_wrapper *)ptr; /* * we'll send a QUIT message to the server, but that message is more of a