]> git.eshelyaron.com Git - emacs.git/commit
Fix double-free bug when finalizing module runtimes.
authorPhilipp Stephani <phst@google.com>
Sun, 29 Nov 2020 20:13:02 +0000 (21:13 +0100)
committerPhilipp Stephani <phst@google.com>
Sun, 29 Nov 2020 20:13:02 +0000 (21:13 +0100)
commit41c338474dd1e086494337fd18ec8828cef1a75c
tree31e090e26e3bda495f984c0a634e21cfe0ecf0ce
parent367727b0f6ed2468c909b9883740bff101d5a68f
Fix double-free bug when finalizing module runtimes.

* src/emacs-module.c (finalize_runtime_unwind): Don't finalize initial
environment twice.

* test/src/emacs-module-resources/mod-test.c (emacs_module_init):
Allocate lots of values during module initialization to trigger the
bug.
src/emacs-module.c
test/src/emacs-module-resources/mod-test.c