diff options
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | include/closestream.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 93303469c..c314edd65 100644 --- a/configure.ac +++ b/configure.ac @@ -156,10 +156,7 @@ AC_ARG_ENABLE([asan], AS_IF([test "x$enable_asan" = xyes], [ UL_WARN_ADD([-fsanitize=address]) ASAN_LDFLAGS="-fsanitize=address" -],[ - AC_DEFINE([USE_CLOSE_ATEXIT], [1], [close stdout at exit]) ]) - AC_SUBST([ASAN_LDFLAGS]) dnl libtool-2 diff --git a/include/closestream.h b/include/closestream.h index 0ce34fe52..6a62e48e8 100644 --- a/include/closestream.h +++ b/include/closestream.h @@ -57,7 +57,7 @@ close_stdout_atexit(void) /* * Note that close stdout at exit disables ASAN to report memory leaks */ -#ifdef USE_CLOSE_ATEXIT +#if !defined(__SANITIZE_ADDRESS__) atexit(close_stdout); #endif } |