From aa9f4351416a2346717c09a01e2aa66c223884b6 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Thu, 22 Apr 2010 11:55:03 -0700 Subject: [PATCH] fix a stupid bug when freeing the C result --- ext/mysql2_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysql2_ext.c b/ext/mysql2_ext.c index 0cf5a55..3852f8b 100644 --- a/ext/mysql2_ext.c +++ b/ext/mysql2_ext.c @@ -464,7 +464,7 @@ static VALUE rb_mysql_result_each(int argc, VALUE * argv, VALUE self) { } if (wrapper->lastRow == wrapper->numberOfRows) { // we don't need the mysql C dataset around anymore, peace it - rb_mysql_result_free(wrapper->result); + rb_mysql_result_free(wrapper); } }