HorimotoYasuhiro
null+****@clear*****
Thu Dec 7 10:21:15 JST 2017
HorimotoYasuhiro 2017-12-07 10:21:15 +0900 (Thu, 07 Dec 2017) New Revision: ac723de53ac2bd56e927c3568526e90bccf67b7a https://github.com/groonga/groonga/commit/ac723de53ac2bd56e927c3568526e90bccf67b7a Merged 9e63e85: Merge pull request #788 from komainu8/fix_memory_leak Message: Moved `grn_obj_unlink` because if keywords is NULL, this causes a crash. Modified files: lib/proc/proc_highlight.c Modified: lib/proc/proc_highlight.c (+1 -1) =================================================================== --- lib/proc/proc_highlight.c 2017-12-06 23:52:18 +0900 (70ed1ffa5) +++ lib/proc/proc_highlight.c 2017-12-07 10:21:15 +0900 (fea3800bc) @@ -373,8 +373,8 @@ func_highlight_full(grn_ctx *ctx, int nargs, grn_obj **args, nargs - N_REQUIRED_ARGS, string, keywords, use_html_escape); + grn_obj_unlink(ctx, keywords); } - grn_obj_unlink(ctx, keywords); } if (!highlighted) { -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171207/e53774aa/attachment.htm