Clean up after adding `codes[]`

This commit is contained in:
Sage Vaillancourt 2020-11-03 15:20:00 -05:00
parent 68705da88f
commit 9da87f5674
1 changed files with 2 additions and 1 deletions

View File

@ -242,7 +242,8 @@ struct Environment defaultEnv()
}
for(unsigned i = 0; i < sizeof(codes)/sizeof(codes[0]); i++) {
parseEval(codes[i], &e);
Object toClean = parseEval(codes[i], &e);
cleanObject(&toClean);
}
return e;