Subject: Re: [boost] [test] console_test_runner ported on *nix
From: Kevin Sopp (baraclese_at_[hidden])
Date: 2008-09-19 07:31:31
What happens is that delete (test_case const*) tu.second; first
invokes the test_case destructor which will erase the value referenced
by tu from the map, then the delete statement continues but tu
references deallocated memory now at which point valgrind complains
that you do an invalid read of 4 bytes.
> These are two distinct operations. clear() will free test unit memory.
> ~test_unit() will erase itself from framework registry. clear() does not call
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk