From: Eli Zaretskii Date: Sat, 1 Aug 2020 12:55:01 +0000 (+0300) Subject: Fix last change X-Git-Tag: emacs-28.0.90~6881 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4ea90a711d11b14be728241a4454f8c5ee7b6478;p=emacs.git 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. --- 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;