diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-08 22:04:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-08 22:04:36 +0100 |
commit | c1c8dba96ef13bfc8725a5142d751601c48c6719 (patch) | |
tree | 03b0921667029da36e23194074b84029e80c56df /src/libcryptobox | |
parent | 6538f7ff7c62de807adca85e5db49d7cccab67d4 (diff) | |
download | rspamd-c1c8dba96ef13bfc8725a5142d751601c48c6719.tar.gz rspamd-c1c8dba96ef13bfc8725a5142d751601c48c6719.zip |
[Feature] Use heap in LRU caches
Signed-off-by: Vsevolod Stakhov <vsevolod@highsecure.ru>
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/keypairs_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcryptobox/keypairs_cache.c b/src/libcryptobox/keypairs_cache.c index a259c2ac1..069158789 100644 --- a/src/libcryptobox/keypairs_cache.c +++ b/src/libcryptobox/keypairs_cache.c @@ -63,7 +63,7 @@ rspamd_keypair_cache_new (guint max_items) g_assert (max_items > 0); c = g_slice_alloc (sizeof (*c)); - c->hash = rspamd_lru_hash_new_full (max_items, -1, NULL, + c->hash = rspamd_lru_hash_new_full (max_items, NULL, rspamd_keypair_destroy, rspamd_keypair_hash, rspamd_keypair_equal); return c; |