fix a stupid bug when freeing the C result

This commit is contained in:
Brian Lopez 2010-04-22 11:55:03 -07:00
parent 51babb3362
commit aa9f435141

View File

@ -464,7 +464,7 @@ static VALUE rb_mysql_result_each(int argc, VALUE * argv, VALUE self) {
} }
if (wrapper->lastRow == wrapper->numberOfRows) { if (wrapper->lastRow == wrapper->numberOfRows) {
// we don't need the mysql C dataset around anymore, peace it // we don't need the mysql C dataset around anymore, peace it
rb_mysql_result_free(wrapper->result); rb_mysql_result_free(wrapper);
} }
} }