diff options
author | Philipp Stephani <phst@google.com> | 2020-08-01 14:13:55 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2020-08-01 14:16:22 +0200 |
commit | c3b53559965a4c6f48274c3cbcb43eb6ef23ae14 (patch) | |
tree | 6fe3d9675b91957a8062efd2a4f8c593ac3eec09 /configure.ac | |
parent | 89127266c93083521d71d8f2314ac88905163fd8 (diff) | |
download | emacs-c3b53559965a4c6f48274c3cbcb43eb6ef23ae14.tar.gz |
Suppress leak detector in some cases
We intentionally leak some objects. Prevent the ASan leak detector
from raising false alarms in these cases.
* configure.ac: Search for lsan_interface.h header.
* src/data.c (make_blv): Allow leaking of buffer-local values.
* src/buffer.c (enlarge_buffer_text): Allow leaking of buffer text.
* src/emacs-module.c (Fmodule_load, initialize_environment): Allow
intentional leak of runtime and environment objects if module
assertions are enabled.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 148c50e0b39..b4674e3204b 100644 --- a/configure.ac +++ b/configure.ac @@ -1740,7 +1740,8 @@ AC_CHECK_HEADERS_ONCE( sys/sysinfo.h coff.h pty.h sys/resource.h - sys/utsname.h pwd.h utmp.h util.h) + sys/utsname.h pwd.h utmp.h util.h + sanitizer/lsan_interface.h) AC_CACHE_CHECK([for ADDR_NO_RANDOMIZE], [emacs_cv_personality_addr_no_randomize], |