From 9ec04ec9b1da97342e9a0ad4f615cc2136fe2f4a Mon Sep 17 00:00:00 2001 From: 5hif7y <44300833+5hif7y@users.noreply.github.com> Date: Sun, 15 Nov 2026 20:22:09 -0300 Subject: [PATCH] Free the resident in a terrain allocation-failure test terrain_resident_and_snapshot_allocation_failures_return_without_indexing_missing_storage never freed its resident, so the places resident_owner reserved leaked 4.13 KiB. Co-Authored-By: Claude Opus 5.5 --- plugins/terrain/runtime/source_test.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/terrain/runtime/source_test.odin b/plugins/terrain/runtime/source_test.odin index c8f3328eb..061a23454 100644 --- a/plugins/terrain/runtime/source_test.odin +++ b/plugins/terrain/runtime/source_test.odin @@ -103,7 +103,7 @@ samples_outside_a_source_are_refused :: proc(t:^testing.T) { @(test) terrain_resident_and_snapshot_allocation_failures_return_without_indexing_missing_storage :: proc(t:^testing.T) { assets:=host.Assets{allocator=runtime.nil_allocator()} - resident:=Terrain_Resident{assets=&assets} + resident:=Terrain_Resident{assets=&assets};defer terrain_resident_free(&resident) entry:=Data_Source{id={1,2},versions={1},quad={first={1=1}}} problems:core.Problems testing.expect(t,resident_source(&resident,&entry,core.Entity(2),&problems)==nil)