diff --git a/test/test_call_from_host.c b/test/test_call_from_host.c index 558016a..2b2c6ee 100644 --- a/test/test_call_from_host.c +++ b/test/test_call_from_host.c @@ -99,6 +99,7 @@ int main() { size_t size = 0; char* source = readFile("../scripts//test/call-from-host.toy", &size); unsigned char* tb = compileString(source, &size); + free((void*)source); if (!tb) { return -1; @@ -272,6 +273,8 @@ int main() { freeLiteralArray(&arguments); freeLiteralArray(&returns); } + + freeLiteral(counter); } //test assertion failure