diff --git a/spectrum/src/main.cpp b/spectrum/src/main.cpp index d2da5047f9e7110b26e98e2c59ac65e3de9c4f8d..1665969a81a1cdeab0b2b2fe3577a3e771896a3a 100644 --- a/spectrum/src/main.cpp +++ b/spectrum/src/main.cpp @@ -125,6 +125,8 @@ int main(int argc, char **argv) std::string jid; setlocale(LC_ALL, ""); + putenv("MALLOC_CHECK_=2"); + putenv("MALLOC_PERTURB_=B"); #ifndef WIN32 if (signal(SIGINT, spectrum_sigint_handler) == SIG_ERR) {