f2a731e0a7
Data_Make_Struct always allocates memory for us, so we need to explicitly free the pointer in the function we pass to the GC, not just objects internal to us. Without this change, a slow but constant growth can be seen with the trivial code below: x = Mysql2::Client.new loop { x.query "select 1" } |
||
---|---|---|
.. | ||
extconf.rb | ||
mysql2_ext.c | ||
mysql2_ext.h |