diff --git a/src/cognac.c b/src/cognac.c index e838c17..dce25a1 100755 --- a/src/cognac.c +++ b/src/cognac.c @@ -1259,6 +1259,7 @@ void to_c(module_t* mod) { fprintf(c_source, "\t*(BOX*)_%zu_envptr = %s;\n", reg->id, c_word_name(w->word)); + fprintf(c_source, "\tgc_mark_ptr((void*)_%zu_envptr);\n", reg->id); if (w->next) fprintf(c_source, "\t_%zu_envptr++;\n", reg->id); }