[LLVMbugs] [Bug 20335] basic_string leaks memory when move-constructed with unequal allocator

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 17 08:34:51 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20335

Marshall Clow (home) <mclow.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|unassignedclangbugs at nondot. |mclow.lists at gmail.com
                   |org                         |

--- Comment #1 from Marshall Clow (home) <mclow.lists at gmail.com> ---
Ok, I've managed to duplicate this; thanks for the report and the description.

The thing to realize here is that when you're using two different allocators
(and no SSO), then it's not really a move, it's a copy.

Committed revision 213269 to fix this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140717/0e8783bc/attachment.html>


More information about the llvm-bugs mailing list