Kouhei Sutou
null+****@clear*****
Tue Apr 17 23:15:40 JST 2018
Kouhei Sutou 2018-04-17 23:15:40 +0900 (Tue, 17 Apr 2018) New Revision: 40b1a459a547159c6f86192beb6ae198291eac59 https://github.com/groonga/groonga/commit/40b1a459a547159c6f86192beb6ae198291eac59 Message: time_format: fix a memory leak Modified files: plugins/functions/time.c Modified: plugins/functions/time.c (+1 -0) =================================================================== --- plugins/functions/time.c 2018-04-17 16:58:04 +0900 (80dca41a4) +++ plugins/functions/time.c 2018-04-17 23:15:40 +0900 (4a0525bfe) @@ -392,6 +392,7 @@ func_time_format(grn_ctx *ctx, int n_args, grn_obj **args, sizeof(formatted_time_buffer), GRN_TEXT_VALUE(&nul_terminated_format), &tm); + GRN_OBJ_FIN(ctx, &nul_terminated_format); formatted_time = grn_plugin_proc_alloc(ctx, user_data, GRN_DB_TEXT, 0); GRN_TEXT_SET(ctx, -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180417/5ee0f9a9/attachment.htm