mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
3d3a02c97f
commit
995d330779
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue