aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-17 16:10:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-17 16:10:47 +0100
commit0f38bb097e151109c163f9b56db824f39788097e (patch)
tree979b7e07640766e89a9ecf2ea15f6b848f360241
parent253aee289e1a6b6c3cefd11b3f719655226dc34d (diff)
downloadrspamd-0f38bb097e151109c163f9b56db824f39788097e.tar.gz
rspamd-0f38bb097e151109c163f9b56db824f39788097e.zip
Do not free xxh32_state to work with static states.
-rw-r--r--contrib/xxhash/xxhash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/xxhash/xxhash.c b/contrib/xxhash/xxhash.c
index 7259878d6..4e3e2d03f 100644
--- a/contrib/xxhash/xxhash.c
+++ b/contrib/xxhash/xxhash.c
@@ -725,8 +725,9 @@ FORCE_INLINE U32 XXH32_digest_endian (const XXH32_state_t* state_in, XXH_endiane
h32 ^= h32 >> 13;
h32 *= PRIME32_3;
h32 ^= h32 >> 16;
-
+#if 0
XXH32_freeState((XXH32_state_t *)state_in);
+#endif
return h32;
}