aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-09-24 18:41:55 -0700
committerSteven Moreland <smoreland@google.com>2019-09-24 18:41:55 -0700
commit9a087cdaa7d3959bd44c72c3936d91c351834c91 (patch)
treece644dab6d0610d6c38719e8f20c537bc32804b6
parent6521f01411b2e19769daf6449d234f96f7648d21 (diff)
downloade2fsprogs-9a087cdaa7d3959bd44c72c3936d91c351834c91.tar.gz
Disable leak detection locally.
Since it was disabled globally before. Bug: 141583541 Test: build host w/ ASAN Change-Id: Ia8a7677a5008f2f48a98bda64fdfe6f64762cf1b
-rw-r--r--misc/mke2fs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 8d84f9dc..2e9cbf27 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -2824,6 +2824,12 @@ try_user:
return 0;
}
+// TODO(b/141583541): stop leaks
+const char *__asan_default_options()
+{
+ return "detect_leaks=0";
+}
+
int main (int argc, char *argv[])
{
errcode_t retval = 0;