[Groonga-commit] groonga/groonga at 4de6e23 [master] Fix a memory leak on error

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 30 15:51:53 JST 2013


Kouhei Sutou	2013-04-30 15:51:53 +0900 (Tue, 30 Apr 2013)

  New Revision: 4de6e2339923dad688ba2d1b3b39f629531d7ed1
  https://github.com/groonga/groonga/commit/4de6e2339923dad688ba2d1b3b39f629531d7ed1

  Message:
    Fix a memory leak on error

  Modified files:
    lib/tokenizer.c

  Modified: lib/tokenizer.c (+1 -0)
===================================================================
--- lib/tokenizer.c    2013-04-29 12:46:18 +0900 (f609db6)
+++ lib/tokenizer.c    2013-04-30 15:51:53 +0900 (620d3b0)
@@ -157,6 +157,7 @@ grn_tokenizer_query_open(grn_ctx *ctx, int num_args, grn_obj **args,
                                             normalize_flags,
                                             table_encoding);
         if (!normalized_query) {
+          GRN_PLUGIN_FREE(ctx, query_buf);
           GRN_PLUGIN_FREE(ctx, query);
           return NULL;
         }
-------------- next part --------------
HTML����������������������������...
Download 



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