On Mon, 2016-10-24 at 12:50 +0800, p4759521 wrote: > I want to check my program with valgrind, but my program nerver exit > by self. so how to check the program memory leak? >
>From another shell, you can use vgdb to (a.o.) trigger a leak search. For example, to output all detailed info about all blocks, do: vgdb leak kinds all any unlimited Philippe ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users