Kouhei Sutou
null+****@clear*****
Tue Dec 30 16:53:59 JST 2014
Kouhei Sutou 2014-12-30 16:53:59 +0900 (Tue, 30 Dec 2014) New Revision: 3146493b062aae0395c81e8452d5ec3c8e8e0f04 https://github.com/groonga/groonga/commit/3146493b062aae0395c81e8452d5ec3c8e8e0f04 Message: Fix a memory leak on invalid expression Modified files: lib/expr.c Modified: lib/expr.c (+1 -0) =================================================================== --- lib/expr.c 2014-12-30 15:40:23 +0900 (f235eaf) +++ lib/expr.c 2014-12-30 16:53:59 +0900 (796a546) @@ -4870,6 +4870,7 @@ scan_info_build(grn_ctx *ctx, grn_obj *expr, int *n, "invalid expression: can't use column as a value: %.*s", (int)GRN_TEXT_LEN(&inspected), GRN_TEXT_VALUE(&inspected)); GRN_OBJ_FIN(ctx, &inspected); + SI_FREE(si); for (j = 0; j < i; j++) { SI_FREE(sis[j]); } GRN_FREE(sis); return NULL; -------------- next part -------------- HTML����������������������������...Download