diff options
Diffstat (limited to 'clox/src/memory.c')
-rw-r--r-- | clox/src/memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clox/src/memory.c b/clox/src/memory.c index 8f8fd4a..e88b91f 100644 --- a/clox/src/memory.c +++ b/clox/src/memory.c @@ -23,6 +23,9 @@ static void freeObject(Obj *object) { FREE(ObjFunction, object); break; } + case OBJ_NATIVE: + FREE(ObjNative, object); + break; case OBJ_STRING: { ObjString *string = (ObjString *)object; FREE_ARRAY(char, string->chars, string->length + 1); |