Browse Source

fix test leaks

fleandro 8 tháng trước cách đây
mục cha
commit
555bca2cb4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      tests/core/runtime/test_core_runtime.odin

+ 1 - 0
tests/core/runtime/test_core_runtime.odin

@@ -72,6 +72,7 @@ test_map_get :: proc(t: ^testing.T) {
 		2 = {20, 200, 2000},
 		3 = {30, 300, 3000},
 	}
+	defer delete(m)
 
 	k1, v1, ok1 := runtime.map_get(m, 1)
 	testing.expect_value(t, k1, 1)