aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsandbox/memory.c')
-rw-r--r--libsandbox/memory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libsandbox/memory.c b/libsandbox/memory.c
index 3c6a9a6..cd208dd 100644
--- a/libsandbox/memory.c
+++ b/libsandbox/memory.c
@@ -31,8 +31,7 @@ void free(void *ptr)
if (ptr == NULL)
return;
if (munmap(SB_MALLOC_TO_MMAP(ptr), SB_MALLOC_TO_SIZE(ptr))) {
- int color = ((is_env_on(ENV_NOCOLOR)) ? 0 : 1);
- SB_EERROR(color, "sandbox memory corruption", " free(%p): %s\n",
+ SB_EERROR("sandbox memory corruption", " free(%p): %s\n",
ptr, strerror(errno));
#ifdef HAVE_BACKTRACE
void *funcs[10];