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/emacs-module.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/emacs-module.c')
-rw-r--r-- | src/emacs-module.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c index f57101946b3..a0bab118019 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c @@ -84,10 +84,6 @@ To add a new module function, proceed as follows: #include <stdlib.h> #include <time.h> -#ifdef HAVE_SANITIZER_LSAN_INTERFACE_H -#include <sanitizer/lsan_interface.h> -#endif - #include "lisp.h" #include "bignum.h" #include "dynlib.h" @@ -1103,9 +1099,7 @@ DEFUN ("module-load", Fmodule_load, Smodule_load, 1, 1, 0, if (module_assertions) { rt = xmalloc (sizeof *rt); -#ifdef HAVE___LSAN_IGNORE_OBJECT __lsan_ignore_object (rt); -#endif } else rt = &rt_pub; @@ -1426,9 +1420,7 @@ initialize_environment (emacs_env *env, struct emacs_env_private *priv) if (module_assertions) { env = xmalloc (sizeof *env); -#ifdef HAVE___LSAN_IGNORE_OBJECT __lsan_ignore_object (env); -#endif } priv->pending_non_local_exit = emacs_funcall_exit_return; |