Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      rb_struct_new() allocates a temporary array to hold the arguments to pass to the class constructor, but never frees the array.

        Activity

        Hide
        Charles Oliver Nutter added a comment -

        Fixed by Wayne some time ago by using alloca.

        commit 4033180700f19b2ed5c2c1efa7328bd22cac52d0
        Author: Wayne Meissner <wmeissner@gmail.com>
        Date:   Tue Feb 14 18:17:11 2012 +1000
        
            Fix JRUBY-6451 and make rb_struct_new only pull the needed number of params out of the varargs list.
        
        :100644 100644 ba9552b... 91a3e6e... M  cext/src/struct.cpp
        
        Show
        Charles Oliver Nutter added a comment - Fixed by Wayne some time ago by using alloca. commit 4033180700f19b2ed5c2c1efa7328bd22cac52d0 Author: Wayne Meissner <wmeissner@gmail.com> Date: Tue Feb 14 18:17:11 2012 +1000 Fix JRUBY-6451 and make rb_struct_new only pull the needed number of params out of the varargs list. :100644 100644 ba9552b... 91a3e6e... M cext/src/struct.cpp

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Wayne Meissner
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: