From 4ea90a711d11b14be728241a4454f8c5ee7b6478 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 1 Aug 2020 15:55:01 +0300 Subject: [PATCH] Fix last change * src/emacs-module.c (initialize_environment): Call __lsan_ignore_object only if HAVE_SANITIZER_LSAN_INTERFACE_H is undefined. This fixes compilation on systems that don't have __lsan_* functions. --- src/emacs-module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emacs-module.c b/src/emacs-module.c index 8d06a24210b..4374bf4b1c4 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c @@ -1426,7 +1426,9 @@ initialize_environment (emacs_env *env, struct emacs_env_private *priv) if (module_assertions) { env = xmalloc (sizeof *env); +#ifdef HAVE_SANITIZER_LSAN_INTERFACE_H __lsan_ignore_object (env); +#endif } priv->pending_non_local_exit = emacs_funcall_exit_return; -- 2.39.2