Skip to content

Fix More Memory Issues#35

Merged
pilsnerfrajz merged 6 commits into
mainfrom
actual-memory-leaks
Feb 4, 2026
Merged

Fix More Memory Issues#35
pilsnerfrajz merged 6 commits into
mainfrom
actual-memory-leaks

Conversation

@pilsnerfrajz
Copy link
Copy Markdown
Owner

More Memory Issues

Improves #34 with more memory fixes. Apple clang does not fully support LeakSanitizer and updating the compilation, and running the tests on Linux revealed uncaught memory leaks. These are now fully fixed, even in the test code.

Fixes

  • Makefile
    • Add warning when testing on macOS
    • Set ASAN_OPTIONS to run leak testing
  • tests/arp_test.c
    • Free unfreed memory in ARP test code
  • src/arp.c
    • Remove double-pointer to avoid allocating memory on the heap
    • Copy data to the mask variable address instead of pointing to function stack-allocated memory

README

Update README sections to better reflect tests and content.

@pilsnerfrajz pilsnerfrajz merged commit da798c3 into main Feb 4, 2026
5 checks passed
@pilsnerfrajz pilsnerfrajz deleted the actual-memory-leaks branch February 4, 2026 20:57
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.

1 participant