]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use VALGRIND variable to disable mempool allocs
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Nov 2016 10:07:39 +0000 (10:07 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Nov 2016 10:08:45 +0000 (10:08 +0000)
src/libutil/mem_pool.c

index 2b6b4ec9607b6ce5d2538027ed9c83f5d0fe5868..3b05e1d59b82257b306c280a0fe599856c327384 100644 (file)
@@ -244,8 +244,8 @@ rspamd_mempool_new (gsize size, const gchar *tag)
                /* Check G_SLICE=always-malloc to allow memory pool debug */
                const char *g_slice;
 
-               g_slice = getenv ("G_SLICE");
-               if (g_slice != NULL && g_ascii_strcasecmp (g_slice, "always-malloc") == 0) {
+               g_slice = getenv ("VALGRIND");
+               if (g_slice != NULL) {
                        always_malloc = TRUE;
                }
                env_checked = TRUE;