Skip to content

Free the resident in a terrain allocation-failure test - #104

Merged
tomaszbk merged 1 commit into
mainfrom
terrain/resident-test-leak
Nov 16, 2026
Merged

tomaszbk merged 1 commit into
mainfrom
terrain/resident-test-leak

Conversation

@5hif7y

@5hif7y 5hif7y commented Nov 15, 2026

Copy link
Copy Markdown
Member

Closes #103.

Changes

terrain_resident_and_snapshot_allocation_failures_return_without_indexing_missing_storage (plugins/terrain/runtime/source_test.odin) frees its resident with terrain_resident_free, as the engine does. One line, test only.

Tests

  • mirai test plugins/terrain/runtime: 122/122, and no leak (on main b33d9a2 it prints 4.13 KiB from step.odin:984 resident_owner()).

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@5hif7y 5hif7y self-assigned this Nov 15, 2026
@5hif7y
5hif7y requested a review from tomaszbk November 15, 2026 23:22
@tomaszbk
tomaszbk merged commit bca81fd into main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A terrain allocation-failure test leaks the places it reserved

2 participants