Re: libstdc++, libsupc++, delete operators and valgrind

2013-01-27 Thread Mikolaj Golub
On Sun, Jan 20, 2013 at 02:19:55PM +0200, Mikolaj Golub wrote: Hi, Some time ago I noticed that valgrind started to complain about Mismatched free() / delete / delete [] for valid new/delete combinations. For example, the following test program int main() { char* buf = new

libstdc++, libsupc++, delete operators and valgrind

2013-01-20 Thread Mikolaj Golub
Hi, Some time ago I noticed that valgrind started to complain about Mismatched free() / delete / delete [] for valid new/delete combinations. For example, the following test program int main() { char* buf = new char[10]; delete [] buf; return 0; } produced a warning: