Skip to content

Fix misaligned access and make tests free memory#274

Merged
jthomas43 merged 2 commits intoholepunchto:mainfrom
jthomas43:make-tests-leak-free
Feb 27, 2026
Merged

Fix misaligned access and make tests free memory#274
jthomas43 merged 2 commits intoholepunchto:mainfrom
jthomas43:make-tests-leak-free

Conversation

@jthomas43
Copy link
Copy Markdown
Contributor

  1. Fix potential misaligned access
  2. make tests free memory (for Valgrind)

Copy link
Copy Markdown
Contributor

@kasperisager kasperisager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use alignas() so the semantics are clear: https://en.cppreference.com/w/c/language/alignas.html

@jthomas43 jthomas43 merged commit b65bf3c into holepunchto:main Feb 27, 2026
3 checks 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.

2 participants