On Mon, Apr 27, 2009 at 7:18 AM, Christoph Bartoschek <[email protected]> wrote: > The following program gives me > also a definitely lost error, although I would expect to have a "still > reachable" > > #include <stdlib.h> > > int main() { > void * p = malloc(20); > }
Change the storage class of p so that it is still in scope at program end, and you will get "still reachable". ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
