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

duerst at ruby-lang.org duerst at ruby-lang.org
Thu Dec 6 18:16:43 JST 2018


duerst	2018-12-06 18:16:43 +0900 (Thu, 06 Dec 2018)

  New Revision: 66239

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

  Log:
    make sure all nodes are freed on error in node_extended_grapheme_cluster()
    
    regparse.c: In function node_extended_grapheme_cluster(), use function-global
    array node_common and use it for list and alternate construction. This is done
    so that in case of error, all nodes that have already been constructed can be
    correctly freed in a single for loop. Document the layout structure.

  Modified files:
    trunk/regparse.c


More information about the ruby-cvs mailing list