Browse Source

fix test leaks

fleandro 8 months ago
parent
commit
555bca2cb4
1 changed files with 1 additions and 0 deletions
  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)