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 08f5178 4.4 KB Updated

File contents

thejefflarson/soundcheck/tree/main/.claude/skills/memory-api-misuse commit 08f5178812

Frequently asked questions

npx skillmds@latest add thejefflarson/memory-api-misuse