fix le memory leak

This commit is contained in:
2026-06-16 20:01:42 +10:00
parent 9539629cfb
commit 02b5a9cc54
6 changed files with 73 additions and 5 deletions

View File

@@ -38,6 +38,11 @@ void _GroundFreeFunction(GroundFunction* in);
void _GroundFreeStruct(GroundStruct* in);
void _GroundFreeObject(GroundObject* in);
void _GroundFreeArg(GroundArg* in);
void _GroundFreeInstruction(GroundInstruction* in);
void _GroundFreeProgram(GroundProgram* in);
void _GroundFreeState(GroundState* in);
GroundValue _GroundCopyValue(GroundValue* in);
GroundList _GroundCopyList(GroundList* in);
@@ -133,6 +138,11 @@ struct _Ground Ground = {
.Function = _GroundFreeFunction,
.Struct = _GroundFreeStruct,
.Object = _GroundFreeObject,
.Arg = _GroundFreeArg,
.Instruction = _GroundFreeInstruction,
.Program = _GroundFreeProgram,
.State = _GroundFreeState,
},
.Copy = {