Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: frithjofh on April 21, 2015, 06:51:10 pm

Title: small memory leak in ToolsPlus plugin? and diff file
Post by: frithjofh 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
Title: Re: small memory leak in ToolsPlus plugin? and diff file
Post by: MortenMacFly on April 22, 2015, 07:37:29 am
Good catch and applied. Thanks for spotting this!