]> source.dussan.org Git - rspamd.git/commitdiff
Do not free xxh32_state to work with static states.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 May 2015 15:10:47 +0000 (16:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 May 2015 15:10:47 +0000 (16:10 +0100)
contrib/xxhash/xxhash.c

index 7259878d6ae4e60a2ceeb597ec0c5e05d8acc2c9..4e3e2d03fd7b4a23126db23830864481c854375c 100644 (file)
@@ -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;
 }