소스 검색

fix stupid oversight

master
Martin Dørum 3 년 전
부모
커밋
ada96b8fdc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      lib/vm/vm.c

+ 1
- 1
lib/vm/vm.c 파일 보기

@@ -96,7 +96,7 @@ static void gc_free(struct l2_vm *vm, l2_word id) {
// Don't need to do anything more; the next round of GC will free
// whichever values were only referenced by the array
int typ = l2_vm_value_type(val);
if (typ == L2_VAL_TYPE_ARRAY || typ == L2_VAL_TYPE_BUFFER || typ == L2_VAL_TYPE_NAMESPACE) {
if (typ == L2_VAL_TYPE_ARRAY) {
free(val->array);
} else if (typ == L2_VAL_TYPE_BUFFER) {
free(val->buffer);

Loading…
취소
저장