Skip to content

Commit

Permalink
Merge pull request #11314 from JuliaLang/ob/gcroot
Browse files Browse the repository at this point in the history
Missing gc root
  • Loading branch information
tkelman committed May 17, 2015
2 parents b3116d4 + 4f0262c commit 0027ed1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,10 @@ static jl_value_t *eval(jl_value_t *e, jl_value_t **locals, size_t nl, size_t ng
return rhs;
}
}
JL_GC_PUSH1(&rhs);
jl_binding_t *b = jl_get_binding_wr(jl_current_module, (jl_sym_t*)sym);
jl_checked_assignment(b, rhs);
JL_GC_POP();
return rhs;
}
else if (ex->head == new_sym) {
Expand Down

0 comments on commit 0027ed1

Please sign in to comment.