correctly free the wrapped result in case of EOF
This is a followup to aa9f435141
which made the same change 10 lines down.
This commit is contained in:
parent
1d92db8aab
commit
4ac62c1333
|
@ -611,7 +611,7 @@ static VALUE rb_mysql_result_each(int argc, VALUE * argv, VALUE self) {
|
||||||
|
|
||||||
if (row == Qnil) {
|
if (row == Qnil) {
|
||||||
// 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);
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue