diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-03 15:21:59 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-03 19:08:58 -0700 |
commit | a1436544ff826b8c51242f4afb7c5d485c8e2e32 (patch) | |
tree | 05806e744974863a62ef5b2e903b062ca2c7545f /src/search.c | |
parent | a4ed198e8f3754a59cabbb03ab6bae8a49597ee0 (diff) | |
download | emacs-a1436544ff826b8c51242f4afb7c5d485c8e2e32.tar.gz |
Simplify use of __lsan_ignore_object
* configure.ac: Use AC_CHECK_FUNCS_ONCE for __lsan_ignore_object.
* src/buffer.c, src/data.c, src/emacs-module.c, src/regex-emacs.c:
* src/search.c: Use __lsan_ignore_object unconditionally, and don’t
include sanitizer/lsan_interface.h.
* src/lisp.h (__lsan_ignore_object): Provide a dummy in the
typical case where leak sanitization is not available.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/search.c b/src/search.c index 7b74ff91480..38c64caf7c0 100644 --- a/src/search.c +++ b/src/search.c @@ -21,10 +21,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ #include <config.h> -#ifdef HAVE_SANITIZER_LSAN_INTERFACE_H -#include <sanitizer/lsan_interface.h> -#endif - #include "lisp.h" #include "character.h" #include "buffer.h" @@ -619,9 +615,7 @@ newline_cache_on_off (struct buffer *buf) if (base_buf->newline_cache == 0) { base_buf->newline_cache = new_region_cache (); -#ifdef HAVE___LSAN_IGNORE_OBJECT __lsan_ignore_object (base_buf->newline_cache); -#endif } } return base_buf->newline_cache; |