Disable leak detection locally.
Since it was disabled globally before.
Bug: 141583221
Test: build host w/ ASAN
Change-Id: I29844e7bf7df0031062736b2c18ba2e028ffc6ab
diff --git a/Modules/main.c b/Modules/main.c
index a6edf82..ac6c027 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -149,6 +149,11 @@
/*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");