[Groonga-commit] groonga/groonga at 0d7be86 [master] index_column_diff: fix a memory leak

Back to archive index
Kouhei Sutou null+****@clear*****
Wed Mar 20 15:13:18 JST 2019


Kouhei Sutou	2019-03-20 15:13:18 +0900 (Wed, 20 Mar 2019)

  Revision: 0d7be86a068d17125743cc28da127837c97d9ace
  https://github.com/groonga/groonga/commit/0d7be86a068d17125743cc28da127837c97d9ace

  Message:
    index_column_diff: fix a memory leak

  Modified files:
    lib/index_column.c

  Modified: lib/index_column.c (+0 -3)
===================================================================
--- lib/index_column.c    2019-03-20 15:08:02 +0900 (550de0e7f)
+++ lib/index_column.c    2019-03-20 15:13:18 +0900 (aac6f1389)
@@ -318,9 +318,6 @@ grn_index_column_diff_data_fin(grn_ctx *ctx,
   GRN_OBJ_FIN(ctx, &(data->buffers.postings));
 
   for (size_t i = 0; i < GRN_INDEX_COLUMN_DIFF_CACHE_SIZE; i++) {
-    if (data->cache[i].token_id == GRN_ID_NIL) {
-      continue;
-    }
     GRN_OBJ_FIN(ctx, &(data->cache[i].postings));
   }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190320/75106711/attachment-0001.html>


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