Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
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 :
Description
rb_struct_new() allocates a temporary array to hold the arguments to pass to the class constructor, but never frees the array.
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