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:
naruse 2010-06-12 16:37:21 +00:00
parent c09d54a46c
commit 6fcf972c20
3 changed files with 11 additions and 2 deletions

View file

@ -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);