]> git.eshelyaron.com Git - emacs.git/commit
Fix detection of freed emacs_values (Bug#32479)
authorSergey Vinokurov <serg.foo@gmail.com>
Sun, 19 Aug 2018 20:31:01 +0000 (21:31 +0100)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 25 Aug 2018 22:57:56 +0000 (18:57 -0400)
commit54fb383af6f6af7b72c28f38b308d9b24d2af4f6
treeedc7291d8ae2c17a2e5d0b7e5d29546b93660bcd
parent769d0cdaa9a986b74e30dfc589e1fa8115e1d401
Fix detection of freed emacs_values (Bug#32479)

* src/emacs-module.c (module_free_global_ref): Compare a value to be
freed with all entries of the list.

* test/data/emacs-module/mod-test.c (Fmod_test_globref_free): New
function.
(emacs_module_init): Make it accessible from Lisp.
* test/src/emacs-module-tests.el (mod-test-globref-free-test): New
test which uses it.
src/emacs-module.c
test/data/emacs-module/mod-test.c
test/src/emacs-module-tests.el