[Bug libstdc++/88199] [7/8 Regression] memory leak on unordered container move assignment

fdumont at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 28 06:20:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88199

--- Comment #3 from François Dumont <fdumont at gcc dot gnu.org> ---
Author: fdumont
Date: Wed Nov 28 06:19:38 2018
New Revision: 266542

URL: https://gcc.gnu.org/viewcvs?rev=266542&root=gcc&view=rev
Log:
2018-11-28  François Dumont  <fdumont@gcc.gnu.org>

        PR libstdc++/88199
        * include/bits/hashtable.h
        (_Hashtable<>::_M_move_assign(_Hashtable&&, false_type)): Deallocate
        former buckets after assignment.
        * testsuite/23_containers/unordered_set/allocator/move_assign.cc
        (test03): New.

Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/include/bits/hashtable.h
   
branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/unordered_set/allocator/move_assign.cc


More information about the Gcc-bugs mailing list