Kouhei Sutou
null+****@clear*****
Sat Oct 25 17:42:51 JST 2014
Kouhei Sutou 2014-10-25 17:42:51 +0900 (Sat, 25 Oct 2014) New Revision: 016dbf96336bd7c0f9217268c5d15639137d83f7 https://github.com/groonga/groonga/commit/016dbf96336bd7c0f9217268c5d15639137d83f7 Message: Fix a memory leak on converting weight vector to text Modified files: lib/str.c Modified: lib/str.c (+2 -0) =================================================================== --- lib/str.c 2014-10-25 15:29:05 +0900 (29e532a) +++ lib/str.c 2014-10-25 17:42:51 +0900 (ea40e25) @@ -2941,6 +2941,8 @@ grn_text_otoj(grn_ctx *ctx, grn_obj *bulk, grn_obj *obj, grn_obj_format *format) } } GRN_TEXT_PUTC(ctx, bulk, ']'); + GRN_OBJ_FIN(ctx, &value); + GRN_OBJ_FIN(ctx, &weight); } break; case GRN_PVECTOR : -------------- next part -------------- HTML����������������������������...Download