Permalink
Browse files

fix a memory corruption during GC

  • Loading branch information...
cpylua committed May 3, 2012
1 parent 9155c3d commit ea45d663ac3a7744e7462348dd1a0648b4f907f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 eval.c
View
2 eval.c
@@ -790,8 +790,8 @@ static object* expand_macro(object *raw_exp, object *macro, object *args) {
tenv = extend_env(obj_lvp(op),
params,
obj_lve(op));
- texp = make_begin(obj_lvb(op));
gc_protect(tenv);
+ texp = make_begin(obj_lvb(op));
gc_protect(texp);
exp = sc_eval(texp, tenv);
gc_abandon();

0 comments on commit ea45d66

Please sign in to comment.