summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-12 15:28:40 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-12 15:28:40 +0000
commit5422161026d4b08f94bdfa39f6dcd266696de64c (patch)
treea42327331347d62f0dbd2298f1ccff8588dce772 /ext/fiddle
parentd65d2384a6ef555f0eb10c65def1198f01e17e4b (diff)
* 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/trunk@28300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/closure.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/fiddle/closure.c b/ext/fiddle/closure.c
index 2531ef2..3dc8eda 100644
--- a/ext/fiddle/closure.c
+++ b/ext/fiddle/closure.c
@@ -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);