aboutsummaryrefslogtreecommitdiffstats
path: root/src/kvstorage_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-01 20:48:30 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-01 20:48:30 +0300
commit323cc58a8819d8356562bbc2de55d4ef920b22cc (patch)
treef66b05e5f9f813f279bca705e4bb95f4951a6c66 /src/kvstorage_config.c
parent7770c0c2ff70150fe33358a461fadf91e01ae23f (diff)
downloadrspamd-323cc58a8819d8356562bbc2de55d4ef920b22cc.tar.gz
rspamd-323cc58a8819d8356562bbc2de55d4ef920b22cc.zip
Fixes to BDB initialization.
Diffstat (limited to 'src/kvstorage_config.c')
-rw-r--r--src/kvstorage_config.c9
1 files changed, 9 insertions, 0 deletions
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;
+ }
+}