fix le memory leak
This commit is contained in:
10
src/Free/Arg.c
Normal file
10
src/Free/Arg.c
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user