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

Back to archive index

Naoya Murakami null+****@clear*****
Sat Jan 7 15:25:08 JST 2017


Naoya Murakami	2017-01-07 15:25:08 +0900 (Sat, 07 Jan 2017)

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

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

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

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+1 -0)
===================================================================
--- lib/pat.c    2017-01-07 15:24:51 +0900 (c6972ae)
+++ lib/pat.c    2017-01-07 15:25:08 +0900 (0fa4da9)
@@ -709,6 +709,7 @@ grn_pat_truncate(grn_ctx *ctx, grn_pat *pat)
     pat->header->truncated = GRN_TRUE;
   }
   if ((rc = grn_io_close(ctx, pat->io))) { goto exit; }
+  grn_pvector_fin(ctx, &pat->token_filters);
   pat->io = NULL;
   if (path && (rc = grn_io_remove(ctx, path))) { goto exit; }
   if (!_grn_pat_create(ctx, pat, path, key_size, value_size, flags)) {
-------------- next part --------------
HTML����������������������������...
Download 



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