This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] Fix memory leak in C++ pretty printer


On 05/11/2015 02:01 PM, Jason Merrill wrote:
On 05/11/2015 12:57 PM, Jason Merrill wrote:
On 05/11/2015 08:03 AM, Manuel López-Ibáñez wrote:
My preference would be to replace the static with a pointer and
placement-new with proper new and delete

Actually, on second thought, there really doesn't seem to be a need for
that.  The patch should be OK; if it doesn't work I'd like to know why.
I think the existing pattern is just a holdover from the C days.

So go ahead and apply the patch. If you would also make the similar fix to other front ends, that would be great, too.

Jason


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