From 0f38bb097e151109c163f9b56db824f39788097e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 17 May 2015 16:10:47 +0100 Subject: Do not free xxh32_state to work with static states. --- contrib/xxhash/xxhash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') 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; } -- cgit v1.2.3