From 71ec940f78ca83f5a35fdcbbcde26c0947cc10c4 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Tue, 24 Sep 2019 18:43:59 -0700 Subject: Disable leak detection locally. Since it was disabled globally before. Bug: 141583221 Test: build host w/ ASAN Change-Id: I29844e7bf7df0031062736b2c18ba2e028ffc6ab --- Modules/main.c | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.3