better error handliung
This commit is contained in:
parent
aebe586a05
commit
f76c4f9af9
7 changed files with 80 additions and 43 deletions
|
|
@ -32,6 +32,7 @@ V chunk_release(Bc *chunk) {
|
|||
#if CHUNK_DEBUG
|
||||
fprintf(stderr, "DEBUG: freeing chunk %s at %p\n", chunk->name, (V *)chunk);
|
||||
#endif
|
||||
yar_free(&chunk->lines);
|
||||
yar_free(&chunk->constants);
|
||||
yar_free(chunk);
|
||||
free(chunk);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue