CLI tool that explains C memory leaks and suggests fixes
Source: Dev.to

Introduction
Hello everyone,
I’ve developed an open‑source tool called Leax. It’s a CLI that acts as a companion to Valgrind to help understand memory leaks in C programs.
Repository
Features
Leax combines Valgrind, GDB‑based tracing, and Mistral AI to:
- pinpoint the root cause of a leak,
- explain why it happens,
- suggest a concrete fix.
How it works
The memory analysis itself is deterministic (based on execution traces), while the AI is mainly used to explain the “story” of memory in your program in plain language.
It works well on classic C programs using malloc/free.
Limitations
There are still limitations in some cases (multi‑process programs, etc.), and the tool is actively being improved.
Contributing
If anyone wants to try it on their C projects, I’d really appreciate feedback and suggestions!
Thanks!