summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2019-05-07 12:59:52 +0200
committerKarel Zak2019-05-07 12:59:52 +0200
commit084365f1a1ebed26f2a15e5fc57230a3d7bcdad7 (patch)
tree72ec7544de7c9666ad015d5c569b76afcf717046 /include
parentlib/loopdev.c: Retry LOOP_SET_STATUS64 on EAGAIN (diff)
downloadkernel-qcow2-util-linux-084365f1a1ebed26f2a15e5fc57230a3d7bcdad7.tar.gz
kernel-qcow2-util-linux-084365f1a1ebed26f2a15e5fc57230a3d7bcdad7.tar.xz
kernel-qcow2-util-linux-084365f1a1ebed26f2a15e5fc57230a3d7bcdad7.zip
build-sys: use __SANITIZE_ADDRESS__ rather than custom USE_CLOSE_ATEXIT
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/closestream.h2
1 files changed, 1 insertions, 1 deletions
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
}