fix a stupid bug when freeing the C result
This commit is contained in:
parent
51babb3362
commit
aa9f435141
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user