alandefreitas / clang-unformat

A simple tool to infer a .clang-format file from existing code
Boost Software License 1.0
58 stars 13 forks source link

Memory leak on edlibAlign #11

Closed CarlosNihelton closed 1 year ago

CarlosNihelton commented 1 year ago

Thanks for this nice piece of software! Besides the usefulness, I was curious about the nice TUI colors and navigating the source code i spot a suspicious call to what looked to be a C API that would lead to a memory leak.

In fact, the leak was confirmed on edlibAlign.

image

For the record, the screenshot is from heaptrack analyzing the memory profile of clang-unformat running against its own source code: heaptrack ./build/clang-unformat --input standalone --output build/.clang-format