Skip to content

Commit cb63ebe

Browse files
authored
Merge pull request #152 from hajimenez/fix-ibm-hugo-jimenez
Return throws the garbage collector phase data connection to release …
2 parents e2e8f28 + 0cab2dc commit cb63ebe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

IBM_DB_Adapter/ibm_db/ext/ibm_db.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,7 @@ static void _ruby_ibm_db_mark_stmt_struct(stmt_handle *handle)
686686
static inline
687687
VALUE ibm_Ruby_Thread_Call(rb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2)
688688
{
689-
void *(*f)(void*) = (void *(*)(void*))func;
690-
return (VALUE)rb_thread_call_without_gvl(f, data1, ubf, data2);
689+
return func(data1);
691690
}
692691

693692

0 commit comments

Comments
 (0)