From 5cadce3417a09335a220f5a58b1e6412dc76298b Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Tue, 14 Sep 2010 20:51:21 -0700 Subject: [PATCH] fix bug in rb_mysql_client_free --- ext/mysql2/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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