From 22af69906cca871fdb893e06d6f10dbbab4518e6 Mon Sep 17 00:00:00 2001 From: Valentin Gatien-Baron <vgatien-baron@janestreet.com> Date: Mon, 10 Jul 2017 00:08:52 +0200 Subject: [PATCH] Fix bug in module_free_global_ref (Bug#27587) * src/emacs-module.c (module_free_global_ref): Actually remove entry from hash table. Copyright-paperwork-exempt: yes --- src/emacs-module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emacs-module.c b/src/emacs-module.c index c5e56b1344c..ba996982604 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c @@ -328,7 +328,7 @@ module_free_global_ref (emacs_env *env, emacs_value ref) set_hash_value_slot (h, i, value); } else - hash_remove_from_table (h, value); + hash_remove_from_table (h, obj); } if (module_assertions) -- 2.39.5