From 3d63b7639e4332080469aee8935ee59f5fa86e0f Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 2 May 2007 09:59:47 +0000 Subject: [PATCH] setting MALLOC_CHECK_=0 for charon to not use glibc's malloc checker --- src/starter/invokecharon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/starter/invokecharon.c b/src/starter/invokecharon.c index 7e93b9ac6..422e4788b 100644 --- a/src/starter/invokecharon.c +++ b/src/starter/invokecharon.c @@ -207,6 +207,8 @@ starter_start_charon (starter_config_t *cfg, bool debug) /* child */ setsid(); sigprocmask(SIG_SETMASK, 0, NULL); + /* disable glibc's malloc checker, conflicts with leak detective */ + setenv("MALLOC_CHECK_", "0", 1); execv(arg[0], arg); plog("can't execv(%s,...): %s", arg[0], strerror(errno)); exit(1);