|
From: Nicholas N. <nj...@ca...> - 2004-07-14 12:39:25
|
On Tue, 13 Jul 2004, Nicholas Nethercote wrote: >> Results in the error: >> >> ==27651== Mismatched free() / delete / delete [] >> ==27651== at 0x3C01E87B: free (vg_replace_malloc.c:127) >> ==27651== by 0x3C0C78D0: operator delete(void*, std::nothrow_t >> const&) (del_opnt.cc:39) > > Looks like a Valgrind bug. It's not catching replacing delete(nothrow) with > its own version. > > To fix this requires knowing what the mangled name of delete(nothrow) is, but > I don't know how to work this out... the one for new(nothrow) is > _ZnwjRKSt9nothrow_t... maybe someone else can enlighten me. Can you try the attached patch against the current Valgrind CVS HEAD? (See valgrind.kde.org/cvs.html for how to obtain/build the CVS HEAD.) If the patch works, I will commit it. Thanks for your help. N |