[Groonga-commit] ranguba/rroonga at 97d2005 [master] Fix a crash bug by GC

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Aug 16 15:21:07 JST 2014


Kouhei Sutou	2014-08-16 15:21:07 +0900 (Sat, 16 Aug 2014)

  New Revision: 97d2005e6e61c5f2ef2319e2faf7432179a87e8a
  https://github.com/ranguba/rroonga/commit/97d2005e6e61c5f2ef2319e2faf7432179a87e8a

  Message:
    Fix a crash bug by GC
    
    It fixes a GC related crash when GC is run while Table#group.

  Modified files:
    ext/groonga/rb-grn-table.c

  Modified: ext/groonga/rb-grn-table.c (+1 -0)
===================================================================
--- ext/groonga/rb-grn-table.c    2014-08-16 13:43:53 +0900 (3ea7970)
+++ ext/groonga/rb-grn-table.c    2014-08-16 15:21:07 +0900 (6324330)
@@ -77,6 +77,7 @@ rb_grn_table_bind (RbGrnTable *rb_grn_table,
     rb_grn_object = RB_GRN_OBJECT(rb_grn_table);
     rb_grn_table->value = grn_obj_open(context, GRN_BULK, 0,
                                        rb_grn_object->range_id);
+    rb_grn_table->columns = Qnil; /* For GC while the below rb_ary_new(). */
     rb_grn_table->columns = rb_ary_new();
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index