From 06310cf9122500faa96ad200888cfbb1dda56563 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Sat, 1 Aug 2020 17:12:30 +0200 Subject: Use a more precise check for '__lsan_ignore_object' * configure.ac: Add check for __lsan_ignore_object. * src/buffer.c (enlarge_buffer_text): * src/data.c (make_blv): * src/emacs-module.c (Fmodule_load, initialize_environment): * src/regex-emacs.c (regex_compile): * src/search.c (newline_cache_on_off): Use new configuration macro. --- src/regex-emacs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/regex-emacs.c') diff --git a/src/regex-emacs.c b/src/regex-emacs.c index 5c08c81c0b5..1ecbc74b96c 100644 --- a/src/regex-emacs.c +++ b/src/regex-emacs.c @@ -1761,7 +1761,7 @@ regex_compile (re_char *pattern, ptrdiff_t size, /* Initialize the compile stack. */ compile_stack.stack = xmalloc (INIT_COMPILE_STACK_SIZE * sizeof *compile_stack.stack); -#ifdef HAVE_SANITIZER_LSAN_INTERFACE_H +#ifdef HAVE___LSAN_IGNORE_OBJECT __lsan_ignore_object (compile_stack.stack); #endif compile_stack.size = INIT_COMPILE_STACK_SIZE; -- cgit v1.2.3