From 748929b81f26dba503e43f5ea3b4a04bf40a2b57 Mon Sep 17 00:00:00 2001 From: rvlad-patrascu Date: Thu, 26 Jan 2017 18:30:42 +0200 Subject: [PATCH] cachedb_local: fix bad pointer in destroy function --- modules/cachedb_local/cachedb_local.c | 2 +- modules/cachedb_local/hash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cachedb_local/cachedb_local.c b/modules/cachedb_local/cachedb_local.c index 6bc3348a611..001d71ba418 100644 --- a/modules/cachedb_local/cachedb_local.c +++ b/modules/cachedb_local/cachedb_local.c @@ -448,7 +448,7 @@ static void destroy(void) lcache_col_t* it; for ( it=lcache_collection; it; it=it->next) { - lcache_htable_destroy( it->col_htable, it->size); + lcache_htable_destroy(&it->col_htable, it->size); } } diff --git a/modules/cachedb_local/hash.c b/modules/cachedb_local/hash.c index 904592ad043..f0f672a7356 100644 --- a/modules/cachedb_local/hash.c +++ b/modules/cachedb_local/hash.c @@ -99,7 +99,7 @@ void lcache_htable_destroy(lcache_t** cache_htable_p, int size) } } shm_free(cache_htable); - cache_htable = NULL; + *cache_htable_p = NULL; } int lcache_htable_insert(cachedb_con *con,str* attr, str* value, int expires)