[Groonga-commit] groonga/groonga at 47333a2 [master] pat: fix a memory leak for normalizer with options

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 13 17:52:52 JST 2018


Kouhei Sutou	2018-04-13 17:52:52 +0900 (Fri, 13 Apr 2018)

  New Revision: 47333a2169cfcc2e286b1ab35c9c5c50cd8a59c0
  https://github.com/groonga/groonga/commit/47333a2169cfcc2e286b1ab35c9c5c50cd8a59c0

  Message:
    pat: fix a memory leak for normalizer with options

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+1 -0)
===================================================================
--- lib/pat.c    2018-04-13 17:43:56 +0900 (2fd8cbca4)
+++ lib/pat.c    2018-04-13 17:52:52 +0900 (cfa4b647b)
@@ -676,6 +676,7 @@ grn_pat_close(grn_ctx *ctx, grn_pat *pat)
     ERR(rc, "[pat][close] failed to close IO");
   }
   grn_table_module_fin(ctx, &(pat->tokenizer));
+  grn_table_module_fin(ctx, &(pat->normalizer));
   grn_pvector_fin(ctx, &pat->token_filters);
   if (pat->cache) { grn_pat_cache_disable(ctx, pat); }
   GRN_FREE(pat);
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180413/56ca5a0a/attachment.htm 



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