check-memory-leaks

Run valgrind to detect memory leaks and errors in YARS.

3|1|Updated Jul 27, 2016
One-click install
npx skills add https://github.com/kzahedi/YARS --skill check-memory-leaks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-memory-leaks
Source: https://github.com/kzahedi/YARS/tree/main/.claude/skills/check-memory-leaks
Command: npx skills add https://github.com/kzahedi/YARS --skill check-memory-leaks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill uses valgrind to detect memory leaks and memory errors in YARS.

Core Features & Use Cases

  • Valgrind-based Checks: Run valgrind with comprehensive leak reports.
  • Memory Hygiene: Identify definitely/freeable leaks and invalid memory accesses.
  • Debug Build Advantage: Prefer a debug build for clearer stack traces during analysis.

Quick Start

cd build cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j4 valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-output.txt ./bin/yars --iterations 100 --xml ../xml/braitenberg.xml cat valgrind-output.txt