diff options
-rw-r--r-- | src/libutil/mem_pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c index 2b6b4ec96..3b05e1d59 100644 --- a/src/libutil/mem_pool.c +++ b/src/libutil/mem_pool.c @@ -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; |