[Groonga-commit] groonga/groonga at 60b9ffe [master] Add missing unlinks

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jun 5 23:35:52 JST 2014


Kouhei Sutou	2014-06-05 23:35:52 +0900 (Thu, 05 Jun 2014)

  New Revision: 60b9ffe5723e31a2665563361756485293d3080a
  https://github.com/groonga/groonga/commit/60b9ffe5723e31a2665563361756485293d3080a

  Message:
    Add missing unlinks

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+2 -0)
===================================================================
--- lib/proc.c    2014-06-05 23:34:56 +0900 (54adab5)
+++ lib/proc.c    2014-06-05 23:35:52 +0900 (f61fed9)
@@ -3053,6 +3053,7 @@ proc_normalize(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data
           GRN_TEXT_VALUE(&inspected));
       GRN_OBJ_FIN(ctx, &inspected);
       GRN_OUTPUT_CSTR("");
+      grn_obj_unlink(ctx, normalizer);
       return NULL;
     }
 
@@ -3246,6 +3247,7 @@ create_lexicon_for_tokenize(grn_ctx *ctx,
           (int)GRN_TEXT_LEN(&inspected),
           GRN_TEXT_VALUE(&inspected));
       GRN_OBJ_FIN(ctx, &inspected);
+      grn_obj_unlink(ctx, normalizer);
       return NULL;
     }
   }
-------------- next part --------------
HTML����������������������������...
Download 



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