Kouhei Sutou
null+****@clear*****
Tue Nov 6 18:26:47 JST 2012
Kouhei Sutou 2012-11-06 18:26:47 +0900 (Tue, 06 Nov 2012) New Revision: b3909c484e6e3d7f3269836a0f616ff9c0ed7d56 https://github.com/groonga/groonga/commit/b3909c484e6e3d7f3269836a0f616ff9c0ed7d56 Log: Ensure freeing grn_token on error Modified files: lib/token.c Modified: lib/token.c (+1 -1) =================================================================== --- lib/token.c 2012-11-06 17:50:41 +0900 (4fce9bb) +++ lib/token.c 2012-11-06 18:26:47 +0900 (9ec0769) @@ -471,7 +471,7 @@ grn_token_open(grn_ctx *ctx, grn_obj *table, const char *str, size_t str_len, } } if (ctx->rc) { - GRN_FREE(token); + grn_token_close(ctx, token); token = NULL; } return token; -------------- next part -------------- HTML����������������������������... Download