From faae998e454eadc0a8f929cb391b28e98b274d10 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Wed, 21 May 2014 16:22:06 +0200 Subject: [PATCH] Cleanup environment --- malloctrace.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/malloctrace.cpp b/malloctrace.cpp index b63897b..c76c62c 100644 --- a/malloctrace.cpp +++ b/malloctrace.cpp @@ -167,6 +167,9 @@ struct Data fprintf(stderr, "Failed to open output file: %s\n", outputFileName.c_str()); exit(1); } + + unsetenv("DUMP_MALLOC_TRACE_OUTPUT"); + unsetenv("LD_PRELOAD"); } ~Data() -- 2.7.4