Project

General

Profile

« Previous | Next » 

Revision b936115e

Added by nobu (Nobuyoshi Nakada) over 7 years ago

fix potential memory leaks

  • parse.y (primary, new_args_tail, local_tbl): keep the order;
    allocate an empty imemo first then xmalloc, to get rid of
    potential memory leak when allocation imemo failed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e