[Groonga-commit] groonga/groonga at c32bfb4 [master] ja: fix a memory leak on truncate

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Mar 6 16:05:19 JST 2014


Kouhei Sutou	2014-03-06 16:05:19 +0900 (Thu, 06 Mar 2014)

  New Revision: c32bfb44537e521147e33b9973396392bb51b7ab
  https://github.com/groonga/groonga/commit/c32bfb44537e521147e33b9973396392bb51b7ab

  Merged c074380: Merge pull request #156 from groonga/ja-backward-compatible

  Message:
    ja: fix a memory leak on truncate

  Modified files:
    lib/store.c

  Modified: lib/store.c (+1 -0)
===================================================================
--- lib/store.c    2014-03-06 15:51:55 +0900 (5ea1a3b)
+++ lib/store.c    2014-03-06 16:05:19 +0900 (041c01e)
@@ -508,6 +508,7 @@ grn_ja_truncate(grn_ctx *ctx, grn_ja *ja)
   if ((rc = grn_io_close(ctx, ja->io))) { goto exit; }
   ja->io = NULL;
   if (path && (rc = grn_io_remove(ctx, path))) { goto exit; }
+  GRN_GFREE(ja->header);
   if (!_grn_ja_create(ctx, ja, path, max_element_size, flags)) {
     rc = GRN_UNKNOWN_ERROR;
   }
-------------- next part --------------
HTML����������������������������...
Download 



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