Fix incorrect memory usage tracking of code object line mappings
This commit is contained in:
parent
81f78b9199
commit
b6e591601b
@ -39,7 +39,7 @@ void krk_writeChunk(KrkChunk * chunk, uint8_t byte, size_t line) {
|
||||
|
||||
void krk_freeChunk(KrkChunk * chunk) {
|
||||
FREE_ARRAY(uint8_t, chunk->code, chunk->capacity);
|
||||
FREE_ARRAY(size_t, chunk->lines, chunk->capacity);
|
||||
FREE_ARRAY(KrkLineMap, chunk->lines, chunk->linesCapacity);
|
||||
krk_freeValueArray(&chunk->constants);
|
||||
krk_initChunk(chunk);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user