Skip to content

Commit

Permalink
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
Browse files Browse the repository at this point in the history
  [ruby-core:57599] [Bug ruby#8978].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
mame committed Jan 29, 2014
1 parent 3d3a02c commit 995d330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Jan 30 08:26:21 2014 Yusuke Endoh <[email protected]>

* 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 <[email protected]>

* io.c (nogvl_copy_stream_sendfile): check socket on other than
Expand Down
2 changes: 1 addition & 1 deletion ext/fiddle/closure.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 995d330

Please sign in to comment.