Fixed memory leak.
This commit is contained in:
parent
0fb1f1d55f
commit
f5ab0e9cb0
@ -79,6 +79,8 @@ void ast_destroy_psv(AST* ast) {
|
|||||||
default:
|
default:
|
||||||
log_dbgf("Unknown ast type %d (max: %d)", ast->type, AST_TYPE_MAX);
|
log_dbgf("Unknown ast type %d (max: %d)", ast->type, AST_TYPE_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(ast);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ast_print(AST* ast) { ast_print_i(ast, 0); }
|
void ast_print(AST* ast) { ast_print_i(ast, 0); }
|
||||||
|
1
src/gc.c
1
src/gc.c
@ -25,7 +25,6 @@ void* gc_alloc(size_t sz, GCType type) {
|
|||||||
|
|
||||||
void gc_hack_free() {
|
void gc_hack_free() {
|
||||||
while (gclist) {
|
while (gclist) {
|
||||||
log_dbgf("freeing %p", gclist);
|
|
||||||
GC* gc = gclist;
|
GC* gc = gclist;
|
||||||
gclist = gclist->nxt;
|
gclist = gclist->nxt;
|
||||||
switch (gc->type) {
|
switch (gc->type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user