[Bug c++/38067] New: monetary_members.cc: 4 * call to wrong C++ delete
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Nov 10 11:43:00 GMT 2008
I just had a look at some of the source code of the compiler
gcc version 4.4.0 snapshot 20081107.
$ egrep "new|delete" libstdc++-v3/config/locale/gnu/monetary_members.cc | fgrep
__wcs_ps
__wcs_ps = new wchar_t[__len];
delete __wcs_ps;
__wcs_ps = new wchar_t[__len];
delete __wcs_ps;
The two calls to delete look wrong to me. Maybe delete [] was intended ?
Similar fun & games at
$ egrep "new|delete" libstdc++-v3/config/locale/gnu/monetary_members.cc | fgrep
__wcs_ns
__wcs_ns = new wchar_t[__len];
delete __wcs_ns;
__wcs_ns = new wchar_t[__len];
delete __wcs_ns;
Again, maybe delete [] was intended ?
--
Summary: monetary_members.cc: 4 * call to wrong C++ delete
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38067
More information about the Gcc-bugs
mailing list