https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108097
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:881c6cabce5d0b27285ed41bd6dabdf48848cce7 commit r13-4701-g881c6cabce5d0b27285ed41bd6dabdf48848cce7 Author: Jonathan Wakely <jwak...@redhat.com> Date: Wed Dec 14 11:58:05 2022 +0000 libstdc++: Fix size passed to operator delete [PR108097] The number of elements gets stored in _M_capacity so use a separate variable for the number of bytes to allocate. libstdc++-v3/ChangeLog: PR libstdc++/108097 * include/std/stacktrace (basic_stracktrace::_Impl): Do not multiply N by sizeof(value_type) when allocating.