ReswPlus icon indicating copy to clipboard operation
ReswPlus copied to clipboard

C++ string formatting is leaking memory

Open sylveon opened this issue 4 years ago • 0 comments

https://github.com/DotNetPlus/ReswPlus/blob/f44b81cee34141ef41184dd3546eaaf905d9c6cf/src/VSExtension/ReswPlus.Core/CodeGenerators/CppCXCodeGenerator.cs#L257

https://github.com/DotNetPlus/ReswPlus/blob/f44b81cee34141ef41184dd3546eaaf905d9c6cf/src/VSExtension/ReswPlus.Core/CodeGenerators/CppWinRTCodeGenerator.cs#L274

These two buffers are allocated, but never freed, leading to a memory leak

sylveon avatar May 22 '21 00:05 sylveon