[ruby-cvs:54860] normal:r47712 (trunk): io.c: common function to free IO buffers

normal at ruby-lang.org normal at ruby-lang.org
Thu Sep 25 19:40:38 JST 2014

normal	2014-09-25 19:40:37 +0900 (Thu, 25 Sep 2014)

  New Revision: 47712


    io.c: common function to free IO buffers
    This also allows easier tracking of freed memory for systems
    without malloc_usable_size, and also makes future changes
    to freeing buffer memory easier-to-implement.
    * io.c (free_io_buffer): new function for a common pattern
      (clear_readconv): use free_io_buffer
      (rb_io_fptr_finalize): ditto

  Modified files:

More information about the ruby-cvs mailing list