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
|
@ -1,3 +1,8 @@
|
|||
Thu Jan 30 08:26:21 2014 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
|
||||
[ruby-core:57599] [Bug #8978].
|
||||
|
||||
Wed Jan 29 20:08:15 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (nogvl_copy_stream_sendfile): check socket on other than
|
||||
|
|
|
@ -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
Reference in a new issue