[Groonga-commit] groonga/groonga at 8e5cf24 [master] dump: fix memory leak

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jul 14 15:58:23 JST 2017


Kouhei Sutou	2017-07-14 15:58:23 +0900 (Fri, 14 Jul 2017)

  New Revision: 8e5cf244fcae8f2164d3cdb6b37b45e87eb65f51
  https://github.com/groonga/groonga/commit/8e5cf244fcae8f2164d3cdb6b37b45e87eb65f51

  Message:
    dump: fix memory leak

  Modified files:
    lib/proc/proc_dump.c

  Modified: lib/proc/proc_dump.c (+1 -0)
===================================================================
--- lib/proc/proc_dump.c    2017-07-14 15:57:39 +0900 (a2345c3)
+++ lib/proc/proc_dump.c    2017-07-14 15:58:23 +0900 (b1973d3)
@@ -653,6 +653,7 @@ dump_records(grn_ctx *ctx, grn_dumper *dumper, grn_obj *table)
       dump_record(ctx, dumper, table, id, &columns, n_columns);
     }
     GRN_TEXT_PUTS(ctx, dumper->output, "\n]\n");
+    grn_obj_close(ctx, sorted);
     grn_obj_unlink(ctx, sort_keys[0].key);
   } else {
     grn_obj delete_commands;
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index