Author Topic: small memory leak in ToolsPlus plugin? and diff file  (Read 2290 times)

Offline frithjofh

  • Regular
  • ***
  • Posts: 373
small memory leak in ToolsPlus plugin? and diff file
« on: April 21, 2015, 06:51:10 pm »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: small memory leak in ToolsPlus plugin? and diff file
« Reply #1 on: April 22, 2015, 07:37:29 am »
Good catch and applied. Thanks for spotting this!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ