diff --git a/spectrum/src/main.cpp b/spectrum/src/main.cpp index 14abb292b8f215a5052a42189314fadbf65a4bed..dcb8623f59be545aee9a8a042ec241c1307c04da 100644 --- a/spectrum/src/main.cpp +++ b/spectrum/src/main.cpp @@ -26,6 +26,7 @@ #include #include #include "libgen.h" +#include #else #include #define getpid _getpid @@ -127,6 +128,10 @@ int main(int argc, char **argv) std::string jid; setlocale(LC_ALL, ""); +#ifndef WIN32 + mallopt(M_CHECK_ACTION, 2); + mallopt(M_PERTURB, 0xb); +#endif #ifndef WIN32 if (signal(SIGINT, spectrum_sigint_handler) == SIG_ERR) {