From 6fcbf1bc7f1ac21691d7b63e232560eb1cea8ca4 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Sat, 22 Nov 2014 09:42:04 -0600 Subject: [PATCH] Add GC root for func in jl_instantiate_staged Fixes #9099 --- src/gf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gf.c b/src/gf.c index b7c7f1a75e8af..fdf295efce3d0 100644 --- a/src/gf.c +++ b/src/gf.c @@ -949,7 +949,7 @@ DLLEXPORT jl_function_t *jl_instantiate_staged(jl_methlist_t *m, jl_tuple_t *tt, jl_expr_t *ex = NULL; jl_expr_t *oldast = NULL; jl_function_t *func = NULL; - JL_GC_PUSH2(&ex, &oldast); + JL_GC_PUSH3(&ex, &oldast, &func); if (jl_is_expr(m->func->linfo->ast)) oldast = (jl_expr_t*)m->func->linfo->ast; else