mysql2/ext
Eric Wong f2a731e0a7 Fix memory leak from the result wrapper struct itself
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" }
2010-05-05 18:26:29 -07:00
..
extconf.rb wrap mysql_real_connect with rb_thread_blocking_region 2010-05-05 11:57:37 -07:00
mysql2_ext.c Fix memory leak from the result wrapper struct itself 2010-05-05 18:26:29 -07:00
mysql2_ext.h Fix memory leak from the result wrapper struct itself 2010-05-05 18:26:29 -07:00