From 4f0212f87757617ce98779282fdb37bce8663426 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Vavru=C5=A1a?= <marek.vavrusa@nic.cz>
Date: Wed, 27 May 2015 19:28:52 +0200
Subject: [PATCH] modules/kmemcached: fixed broken api

---
 modules/kmemcached/kmemcached.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/kmemcached/kmemcached.c b/modules/kmemcached/kmemcached.c
index 4ca2f427e..1ef4461f7 100644
--- a/modules/kmemcached/kmemcached.c
+++ b/modules/kmemcached/kmemcached.c
@@ -45,8 +45,7 @@ int kmemcached_deinit(struct kr_module *module)
 	struct engine *engine = module->data;
 	/* It was currently loaded, close cache */
 	if (kr_cache_storage == namedb_memcached_api) {
-		kr_cache_close(engine->resolver.cache);
-		engine->resolver.cache = NULL;
+		kr_cache_close(&engine->resolver.cache);
 	}
 	/* Prevent from loading it again */
 	for (unsigned i = 0; i < engine->storage_registry.len; ++i) {
-- 
GitLab