[Groonga-commit] groonga/groonga at a59fc3d [master] Don't touch freed memory

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Aug 16 20:10:07 JST 2015


Kouhei Sutou	2015-08-16 20:10:07 +0900 (Sun, 16 Aug 2015)

  New Revision: a59fc3d75338791b0807c5d363c69751ec5b0236
  https://github.com/groonga/groonga/commit/a59fc3d75338791b0807c5d363c69751ec5b0236

  Message:
    Don't touch freed memory

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+1 -1)
===================================================================
--- lib/ii.c    2015-08-16 16:40:21 +0900 (dc92d29)
+++ lib/ii.c    2015-08-16 20:10:07 +0900 (773b06a)
@@ -8157,13 +8157,13 @@ grn_ii_buffer_close(grn_ctx *ctx, grn_ii_buffer *ii_buffer)
     }
     GRN_FREE(ii_buffer->blocks);
   }
-  GRN_FREE(ii_buffer);
   if (ii_buffer->values) {
     for (i = 0; i < ii_buffer->max_nvalues; i++) {
       ii_buffer_value_fin(ctx, &ii_buffer->values[i]);
     }
     GRN_FREE(ii_buffer->values);
   }
+  GRN_FREE(ii_buffer);
   return ctx->rc;
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



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