[ruby-cvs:69671] nobu:r62490 (trunk): mjit.c: fix memory leak

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Feb 20 13:05:42 JST 2018


nobu	2018-02-20 13:05:42 +0900 (Tue, 20 Feb 2018)

  New Revision: 62490

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62490

  Log:
    mjit.c: fix memory leak
    
    * mjit.c (system_tmpdir): rb_w32_wstr_to_mbstr returns the pointer
      to `malloc`ed region.  allocate with `xmalloc` instead.

  Modified files:
    trunk/mjit.c


More information about the ruby-cvs mailing list