Skip to content

Commit

Permalink
fix memory leak in rbffi_CallFunction()
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Sep 8, 2011
1 parent 11d2862 commit 1557c29
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ext/ffi_c/Call.c
Expand Up @@ -329,7 +329,6 @@ rbffi_CallFunction(int argc, VALUE* argv, void* function, FunctionType* fnInfo)
oldThread = rbffi_active_thread;
rbffi_active_thread = rbffi_thread_self();
#endif
retval = alloca(MAX(fnInfo->ffi_cif.rtype->size, FFI_SIZEOF_ARG));
ffi_call(&fnInfo->ffi_cif, FFI_FN(function), retval, ffiValues);

#if !defined(HAVE_RUBY_THREAD_HAS_GVL_P)
Expand Down

0 comments on commit 1557c29

Please sign in to comment.