diff options
| author | Paul Eggert | 2020-08-03 15:21:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-08-03 19:08:58 -0700 |
| commit | a1436544ff826b8c51242f4afb7c5d485c8e2e32 (patch) | |
| tree | 05806e744974863a62ef5b2e903b062ca2c7545f /src/buffer.c | |
| parent | a4ed198e8f3754a59cabbb03ab6bae8a49597ee0 (diff) | |
| download | emacs-a1436544ff826b8c51242f4afb7c5d485c8e2e32.tar.gz emacs-a1436544ff826b8c51242f4afb7c5d485c8e2e32.zip | |
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/buffer.c')
| -rw-r--r-- | src/buffer.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index e441499aeb0..241f2d43a93 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -28,10 +28,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 28 | #include <stdlib.h> | 28 | #include <stdlib.h> |
| 29 | #include <unistd.h> | 29 | #include <unistd.h> |
| 30 | 30 | ||
| 31 | #ifdef HAVE_SANITIZER_LSAN_INTERFACE_H | ||
| 32 | #include <sanitizer/lsan_interface.h> | ||
| 33 | #endif | ||
| 34 | |||
| 35 | #include <verify.h> | 31 | #include <verify.h> |
| 36 | 32 | ||
| 37 | #include "lisp.h" | 33 | #include "lisp.h" |
| @@ -5087,9 +5083,7 @@ enlarge_buffer_text (struct buffer *b, ptrdiff_t delta) | |||
| 5087 | #else | 5083 | #else |
| 5088 | p = xrealloc (b->text->beg, new_nbytes); | 5084 | p = xrealloc (b->text->beg, new_nbytes); |
| 5089 | #endif | 5085 | #endif |
| 5090 | #ifdef HAVE___LSAN_IGNORE_OBJECT | ||
| 5091 | __lsan_ignore_object (p); | 5086 | __lsan_ignore_object (p); |
| 5092 | #endif | ||
| 5093 | 5087 | ||
| 5094 | if (p == NULL) | 5088 | if (p == NULL) |
| 5095 | { | 5089 | { |