summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 0140ed7d88..e9b953044e 100644
--- a/eval.c
+++ b/eval.c
@@ -2545,6 +2545,7 @@ set_trace_func(obj, trace)
{
rb_event_hook_t *hook;
+ rb_secure(4);
if (NIL_P(trace)) {
trace_func = 0;
rb_remove_event_hook(call_trace_func);