[Groonga-commit] groonga/groonga [master] Clear ctx->impl in grn_ctx_fin()

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 19日 (土) 23:55:26 JST


Kouhei Sutou	2012-05-19 23:55:26 +0900 (Sat, 19 May 2012)

  New Revision: 65faf6a3ab52968324f6cbb9d4091e75eb551097

  Log:
    Clear ctx->impl in grn_ctx_fin()

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+1 -0)
===================================================================
--- lib/ctx.c    2012-05-18 18:36:30 +0900 (88401a2)
+++ lib/ctx.c    2012-05-19 23:55:26 +0900 (ec250ad)
@@ -659,6 +659,7 @@ grn_ctx_fin(grn_ctx *ctx)
       mi.map = (void *)ctx->impl;
       grn_io_anon_unmap(ctx, &mi, IMPL_SIZE);
     }
+    ctx->impl = NULL;
   }
   ctx->stat = GRN_CTX_FIN;
   return rc;




Groonga-commit メーリングリストの案内
Back to archive index