]> git.eshelyaron.com Git - emacs.git/commit
Suppress leak detector in some cases
authorPhilipp Stephani <phst@google.com>
Sat, 1 Aug 2020 12:13:55 +0000 (14:13 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 1 Aug 2020 12:16:22 +0000 (14:16 +0200)
commitc3b53559965a4c6f48274c3cbcb43eb6ef23ae14
tree6fe3d9675b91957a8062efd2a4f8c593ac3eec09
parent89127266c93083521d71d8f2314ac88905163fd8
Suppress leak detector in some cases

We intentionally leak some objects.  Prevent the ASan leak detector
from raising false alarms in these cases.

* configure.ac: Search for lsan_interface.h header.

* src/data.c (make_blv): Allow leaking of buffer-local values.

* src/buffer.c (enlarge_buffer_text): Allow leaking of buffer text.

* src/emacs-module.c (Fmodule_load, initialize_environment): Allow
intentional leak of runtime and environment objects if module
assertions are enabled.
configure.ac
src/buffer.c
src/data.c
src/emacs-module.c