summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2012-10-28 14:51:41 +0000
committerchappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2012-10-28 14:51:41 +0000
commit57c48e9b5ffdb0f177c07ea8420c4072e816e1a7 (patch)
tree62b9f3ff6addb16d4974e025cb8f21d9c0df2208
parent3e296c28c3c2b67df624d372b75650ae65c87b04 (diff)
downloadgperftools-57c48e9b5ffdb0f177c07ea8420c4072e816e1a7.tar.gz
issue-405: backed out original commit made in revision 147 due to the fact that it didn't work as intended
git-svn-id: http://gperftools.googlecode.com/svn/trunk@161 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
-rw-r--r--src/heap-checker.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/heap-checker.cc b/src/heap-checker.cc
index f55f356..88d88f9 100644
--- a/src/heap-checker.cc
+++ b/src/heap-checker.cc
@@ -223,10 +223,6 @@ DEFINE_int32(heap_check_delay_seconds, 0,
" its checks. Report any such issues to the heap-checker"
" maintainer(s).");
-DEFINE_int32(heap_check_error_exit_code,
- EnvToInt("HEAP_CHECK_ERROR_EXIT_CODE", 1),
- "Exit code to return if any leaks were detected.");
-
//----------------------------------------------------------------------
DEFINE_string(heap_profile_pprof,
@@ -2161,8 +2157,7 @@ bool HeapLeakChecker::DoMainHeapCheck() {
}
RAW_LOG(ERROR, "Exiting with error code (instead of crashing) "
"because of whole-program memory leaks");
- // We don't want to call atexit() routines!
- _exit(FLAGS_heap_check_error_exit_code);
+ _exit(1); // we don't want to call atexit() routines!
}
return true;
}