Skip to content

Commit

Permalink
cachedb_local: fix bad pointer in destroy function
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Jan 26, 2017
1 parent 2656eba commit 748929b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/cachedb_local/cachedb_local.c
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/cachedb_local/hash.c
Expand Up @@ -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)
Expand Down

0 comments on commit 748929b

Please sign in to comment.