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

10
src/Free/Arg.c Normal file
View File

@@ -0,0 +1,10 @@
#include "../../include/ground.h"
void _GroundFreeArg(GroundArg* in) {
if (in->type == GroundArg_Value) {
Ground.Free.Value(&in->as.value);
} else {
// FIXME - double free for arg
// free(in->as.ref);
}
}