[Groonga-commit] groonga/groonga at 6b89a64 [master] hash: fix a memory leak when truncate hash has many token filters

Back to archive index

Naoya Murakami null+****@clear*****
Sat Jan 7 15:24:51 JST 2017


Naoya Murakami	2017-01-07 15:24:51 +0900 (Sat, 07 Jan 2017)

  New Revision: 6b89a647ce664285871dd267bdb1eb811677a5aa
  https://github.com/groonga/groonga/commit/6b89a647ce664285871dd267bdb1eb811677a5aa

  Merged 0510048: Merge pull request #622 from naoa/fix-memory-leak-truncate-has-tokenfilters

  Message:
    hash: fix a memory leak when truncate hash has many token filters

  Modified files:
    lib/hash.c

  Modified: lib/hash.c (+1 -0)
===================================================================
--- lib/hash.c    2017-01-06 22:22:22 +0900 (6987f79)
+++ lib/hash.c    2017-01-07 15:24:51 +0900 (905d27c)
@@ -2156,6 +2156,7 @@ grn_hash_truncate(grn_ctx *ctx, grn_hash *hash)
         rc = grn_io_remove(ctx, path);
       }
     }
+    GRN_OBJ_FIN(ctx, &(hash->token_filters));
   }
   if (!rc) {
     rc = grn_hash_init(ctx, hash, path, key_size, value_size, flags);
-------------- next part --------------
HTML����������������������������...
Download 



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