[Groonga-commit] groonga/groonga at f459c1b [master] highligher: fix a memory leak

Back to archive index

Kouhei Sutou null+****@clear*****
Wed May 23 10:25:57 JST 2018


Kouhei Sutou	2018-05-23 10:25:57 +0900 (Wed, 23 May 2018)

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

  Message:
    highligher: fix a memory leak

  Modified files:
    lib/highlighter.c

  Modified: lib/highlighter.c (+1 -0)
===================================================================
--- lib/highlighter.c    2018-05-22 18:38:34 +0900 (9c27b6b60)
+++ lib/highlighter.c    2018-05-23 10:25:57 +0900 (f5a1f8f94)
@@ -145,6 +145,7 @@ grn_highlighter_close(grn_ctx *ctx,
     grn_obj_close(ctx, highlighter->lexicon.token_id_chunks);
   }
   GRN_OBJ_FIN(ctx, &(highlighter->lexicon.token_id_chunk_ids));
+  GRN_OBJ_FIN(ctx, &(highlighter->lexicon.token_id_chunk));
   GRN_OBJ_FIN(ctx, &(highlighter->lexicon.candidates));
   GRN_OBJ_FIN(ctx, &(highlighter->lexicon.token_locations));
   GRN_OBJ_FIN(ctx, &(highlighter->lexicon.token_ids));
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180523/e0a31ee3/attachment-0001.htm 



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