Memory API Misuse

Detects function-local misuse of memory and resource APIs in C, C++, and Rust unsafe — allocations whose return value is not checked, frees on error paths that race the success path, locks initialized incorrectly, file descriptors leaked across exec. Use when writing or modifying C or C++ code that calls malloc/calloc/realloc/free, mmap/munmap, pthread_mutex_*, fopen/open, or any kernel/library memory or resource primitive. Use when writing Rust code inside an unsafe block that calls a raw allocation or pointer API.

thejefflarson Updated 20 repo stars

File contents

thejefflarson/soundcheck commit 08f5178812

Frequently asked questions

npx get-skill add thejefflarson/memory-api-misuse