[Groonga-commit] groonga/groonga at cd7148e [master] cache: clear a pointer on failure

Back to archive index

Susumu Yata null+****@clear*****
Wed Apr 6 13:22:20 JST 2016


Susumu Yata	2016-04-06 13:22:20 +0900 (Wed, 06 Apr 2016)

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

  Message:
    cache: clear a pointer on failure

  Modified files:
    lib/cache.c

  Modified: lib/cache.c (+1 -0)
===================================================================
--- lib/cache.c    2016-04-06 12:41:09 +0900 (e7e4d9a)
+++ lib/cache.c    2016-04-06 13:22:20 +0900 (068e295)
@@ -68,6 +68,7 @@ grn_cache_open(grn_ctx *ctx)
   if (!cache->hash) {
     ERR(GRN_NO_MEMORY_AVAILABLE, "[cache] failed to create hash table");
     GRN_FREE(cache);
+    cache = NULL;
     goto exit;
   }
   MUTEX_INIT(cache->mutex);
-------------- next part --------------
HTML����������������������������...
Télécharger 



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