From 323cc58a8819d8356562bbc2de55d4ef920b22cc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 1 Nov 2011 20:48:30 +0300 Subject: Fixes to BDB initialization. --- src/kvstorage_config.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/kvstorage_config.c') diff --git a/src/kvstorage_config.c b/src/kvstorage_config.c index 2bf905cae..0dbad5380 100644 --- a/src/kvstorage_config.c +++ b/src/kvstorage_config.c @@ -465,3 +465,12 @@ get_kvstorage_config (gint id) } return g_hash_table_lookup (storages, &id); } + +void +destroy_kvstorage_config (void) +{ + if (storages != NULL) { + g_hash_table_destroy (storages); + storages = NULL; + } +} -- cgit v1.2.3