compile: fix memory leaks
This commit is contained in:
@@ -14,8 +14,8 @@ struct compile_state *compile_push_state(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const struct compile_state_type *state_type = state_types
|
||||
[state_type_id];
|
||||
const struct compile_state_type *state_type
|
||||
= state_types[state_type_id];
|
||||
if (!state_type) {
|
||||
return NULL;
|
||||
}
|
||||
@@ -43,10 +43,6 @@ void compile_pop_state(struct compile_ctx *ctx)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!fx_queue_prev(&state->s_entry)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (state->s_type->s_compile_end) {
|
||||
state->s_type->s_compile_end(ctx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user