Skip to content

Use allocated value for deallocate test - #226

Merged
smithsg84 merged 2 commits into
mainfrom
bugfix/smith84/camp-resource-test-compilation-error
Aug 27, 2026
Merged

Use allocated value for deallocate test#226
smithsg84 merged 2 commits into
mainfrom
bugfix/smith84/camp-resource-test-compilation-error

Conversation

@smithsg84

Copy link
Copy Markdown
Member

Use allocated memory in the empty resource deallocation test. A non-heap memory ptr (e.g. value) in the deallocation can flag compilation errors on a free of non-heap memory even though in this case the empty allocator will cause an error to be thrown before the free.

Fixes #225

@MrBurmark

Copy link
Copy Markdown
Member

Cool that the compiler noticed this and complained.

@smithsg84
smithsg84 merged commit c5368b1 into main Aug 27, 2026
13 checks passed
@smithsg84
smithsg84 deleted the bugfix/smith84/camp-resource-test-compilation-error branch August 27, 2026 22:38
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.

CAMP test compilation error

3 participants