summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-29 23:27:14 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-29 23:27:14 +0000
commit995d330779b68a235515f0613bac59120c8b8c30 (patch)
tree292e9cac4802c8923ff01f6e25f32401209a9a93 /ext/fiddle
parent3d3a02c97fba5ab46d3685c8266c859838fdd6a9 (diff)
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
[ruby-core:57599] [Bug #8978]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/closure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/closure.c b/ext/fiddle/closure.c
index cb0c462..e0f7e4b 100644
--- a/ext/fiddle/closure.c
+++ b/ext/fiddle/closure.c
@@ -27,7 +27,7 @@ dealloc(void * ptr)
#if USE_FFI_CLOSURE_ALLOC
ffi_closure_free(cls->pcl);
#else
- munmap(cls->pcl, sizeof(cls->pcl));
+ munmap(cls->pcl, sizeof(*cls->pcl));
#endif
if (cls->argv) xfree(cls->argv);
xfree(cls);