From: Vsevolod Stakhov Date: Sun, 17 May 2015 15:10:47 +0000 (+0100) Subject: Do not free xxh32_state to work with static states. X-Git-Tag: 0.9.1~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0f38bb097e151109c163f9b56db824f39788097e;p=rspamd.git Do not free xxh32_state to work with static states. --- 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; }