fixed segfault on parser objection

This commit is contained in:
2020-10-28 18:29:50 -05:00
parent 2e1b745624
commit 8e71cab642
2 changed files with 6 additions and 4 deletions

View File

@@ -23,6 +23,9 @@ CObj *cosmoO_allocateObject(CState *state, size_t sz, CObjType type) {
obj->next = state->objects;
state->objects = obj;
#ifdef GC_DEBUG
printf("allocated %p with OBJ_TYPE %d\n", obj, type);
#endif
return obj;
}