[ruby-cvs:73235] duerst:r66135 (trunk): make sure all nodes are freed on error in node_extended_grapheme_cluster()

duerst at ruby-lang.org duerst at ruby-lang.org
Mon Dec 3 06:41:50 JST 2018


duerst	2018-12-03 06:41:50 +0900 (Mon, 03 Dec 2018)

  New Revision: 66135

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

  Log:
    make sure all nodes are freed on error in node_extended_grapheme_cluster()
    
    regparse.c: In function node_extended_grapheme_cluster(), introduce function-global
    array node_array and use it for sequence and alternate construction. This is done
    so that in case of error, all nodes that have already been constructed can be
    correctly freed. (issue #15343)

  Modified files:
    trunk/regparse.c


More information about the ruby-cvs mailing list