This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ECOS] Mixed use of delete with malloc in fclose


Guenter Ebermann wrote:
> Jonathan Larmour wrote:
>> So just so I'm sure I understand it, this patch is not fixing 
>> a problem, it's just a bit of cleanup, right?
> 
> Its a sort of rule when implementing C++: If new is used delete must be
> used. Otherwise if malloc is used free must be used. Mixing these functions
> is not allowed.

I suppose, although in practice we know how GCC works :).

Anyway, patch applied, thanks.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]