mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
merge revision(s) 28300:
* ext/fiddle/closure.c (dealloc): workaround fix for libffi's ffi_closure_free. [ruby-dev:41483] [ruby-dev:41214] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c09d54a46c
commit
6fcf972c20
3 changed files with 11 additions and 2 deletions
|
@ -14,11 +14,15 @@ static void
|
|||
dealloc(void * ptr)
|
||||
{
|
||||
fiddle_closure * cls = (fiddle_closure *)ptr;
|
||||
/*
|
||||
#ifndef MACOSX
|
||||
ffi_closure_free(cls->pcl);
|
||||
#else
|
||||
*/
|
||||
munmap(cls->pcl, sizeof(cls->pcl));
|
||||
/*
|
||||
#endif
|
||||
*/
|
||||
xfree(cls->cif);
|
||||
if (cls->argv) xfree(cls->argv);
|
||||
xfree(cls);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue