[PATCH] fix a leak in CodeGenFunction::EmitSwitchStmt (detected by lsan)

Kostya Serebryany kcc at google.com
Thu Jan 9 00:37:24 PST 2014

On Tue, Jan 7, 2014 at 1:33 AM, David Blaikie <dblaikie at gmail.com> wrote:

>   How are jumpdest objects copied, then? Of the copy ctor is deleted and
>   these objects are being memcpied that seems rather broken...

I meant that OwningPtr's copy ctor is deleted.

Any other suggestions for the leak fix?

> http://llvm-reviews.chandlerc.com/D2472
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140109/9f873b0a/attachment.html>

More information about the cfe-commits mailing list