aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-09-26 12:06:20 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-09-26 12:06:20 -0700
commit33c71b00e25c9cefdef7241cb2566f682c060894 (patch)
treef79f5aceda736187485f696a95209ad5eb108580
parenta32b543c7ab0b18641ff91a1645c57a891c8e9d4 (diff)
parent1c13c899cb54e69f9c795640f981becc7a507298 (diff)
downloadcpython2-33c71b00e25c9cefdef7241cb2566f682c060894.tar.gz
Merge "Disable leak detection locally." am: b968753ab5
am: 1c13c899cb Change-Id: I2ef23de47f401165b7246bdd3de3797e60d47392
-rw-r--r--Modules/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/main.c b/Modules/main.c
index a6edf822d0..ac6c027420 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -149,6 +149,11 @@ usage(int exitcode, char* program)
/*NOTREACHED*/
}
+// TODO(b/141583221): stop leaks
+const char *__asan_default_options() {
+ return "detect_leaks=0";
+}
+
static void RunStartupFile(PyCompilerFlags *cf)
{
char *startup = Py_GETENV("PYTHONSTARTUP");