This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [v3] libstdc++/34095


Peter Dimov wrote:
>> -                    delete[] samples;
>> +   ::operator delete(samples);
>
> ::operator delete[]( samples )? It may not matter in practice, of course.
Unless I'm badly mistaken, here and elsewhere, the paired allocation is
::operator new, *not* ::operator new[], therefore the fix should be fine
(and yes, the previous memory leaks were  just horrible, confirmed by
valgrind). In case you spot something else wrong in this area, I would
really appreciate a timely report.

Thanks for your attention,
Paolo.


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