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:
Eric Wong 2010-05-05 17:59:14 -07:00
parent 1d92db8aab
commit 4ac62c1333
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ static VALUE rb_mysql_result_each(int argc, VALUE * argv, VALUE self) {
if (row == Qnil) {
// 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;
}