News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

small memory leak in ToolsPlus plugin? and diff file

Started by frithjofh, April 21, 2015, 06:51:10 PM

Previous topic - Next topic

frithjofh

hi everyone,

i think there is a small memory leak in this plugin, in file PipedProcssCtrl.cpp function OnUserInput(). an array of char is allocated with new and never deleted.  i attach a patch file resolving the issue by changing dynamic allocation (which is not necessary here) to heap allocation.

regards

frithjofh
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

MortenMacFly

Good catch and applied. Thanks for spotting this!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]