parse: lex: fix memory leaks

This commit is contained in:
2026-05-30 19:50:38 +01:00
parent fec3be2140
commit 5d6f2a5ce8
4 changed files with 22 additions and 11 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ extern struct bshell_lex_state *lex_state_push(
struct bshell_lex_ctx *ctx,
enum bshell_lex_state_id state_type,
enum state_flags flags);
extern void lex_state_pop(struct bshell_lex_ctx *ctx);
extern void lex_state_pop(struct bshell_lex_ctx *ctx, bool no_preserve_root);
extern struct bshell_lex_state *lex_state_get(struct bshell_lex_ctx *ctx);
extern void lex_state_change(
struct bshell_lex_ctx *ctx,