compile: fix memory leaks

This commit is contained in:
2026-05-30 19:52:24 +01:00
parent a30e76e525
commit 26b368a512
5 changed files with 56 additions and 6 deletions
+4
View File
@@ -1,6 +1,7 @@
#ifndef BSHELL_COMPILE_H_
#define BSHELL_COMPILE_H_
#include <bshell/command/function.h>
#include <bshell/runtime/script-block.h>
struct bshell_ast_node;
@@ -8,5 +9,8 @@ struct bshell_ast_node;
extern enum bshell_status bshell_compile(
struct bshell_ast_node *src,
bshell_scriptblock *dest);
extern enum bshell_status bshell_compile_function(
struct bshell_ast_node *src,
bshell_function **out);
#endif