2 Commits
Author SHA1 Message Date
samsonium c643f200a1 upd: update READMEs 2026-10-16 18:31:19 +03:00
samsonium 4e7d09cfa9 fix: add objects cleanup after execution 2026-10-16 18:31:10 +03:00
3 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -53,8 +53,9 @@ This file provides set up codestyle rules.
There is two targets in Makefile for debugging purposes: `build-c` for the compiler and `build-vm` for the VM.
Each target can be called with `FILE` variable. For example:
```shell
$ make debug-c FILE=exl/hw.fzs
```
To test new features, use `test` make target and the tests, defined in `CMakeLists.txt`.
+2
View File
@@ -57,3 +57,5 @@
$ make debug-c FILE=exl/hw.fzs
```
Для проверки новых фич, нужно использовать make-таргет `test`, а тесты писать в `CMakeLists.txt`.
+6
View File
@@ -638,6 +638,12 @@ void fzl_freevm(fzl_vm_t *vm)
free((void *)vm->consts[i].as.string.chars);
}
for (size_t i = 0; i < vm->objects_count; i++)
{
free(vm->objects[i]->values);
free(vm->objects[i]);
}
free(vm->consts);
free(vm->ops);
free(vm);