[PATCH] fix a leak in CodeGenFunction::EmitSwitchStmt (detected by lsan)
Kostya Serebryany
kcc at google.com
Wed Dec 25 11:28:25 PST 2013
On Wed, Dec 25, 2013 at 7:48 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
> Any way to use a better ownership model (owning smart pointer or
> something)
> to avoid this special case?
That, or maybe not to create this object at all if it's not needed.
Neither appeared trivial for me, but I am not familiar with this code.
> I'll look at the code more closely than just
> the diff hunk tomorrow
>
Thanks!
--kcc
>
> http://llvm-reviews.chandlerc.com/D2472
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131225/30ede5be/attachment.html>
More information about the cfe-commits
mailing list