]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last change
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 Aug 2020 12:55:01 +0000 (15:55 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 1 Aug 2020 12:55:01 +0000 (15:55 +0300)
* 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

index 8d06a24210b7c276b434d81a350e37334bc1542d..4374bf4b1c45cfac7b7159384ad0a32fee1a5122 100644 (file)
@@ -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;