|
From: Dan K. <da...@ke...> - 2011-11-12 15:10:29
|
On Sat, Nov 12, 2011 at 6:44 AM, Xuehan Xu <xxh...@gm...> wrote: > I'm trying to find out whether there is some kind of dangling > pointers in my program. For example, maybe there are two pointers in my > program that point to the same address, and after one has been free'd, while > the other one is still used to write to that memory location. > Can valgrind detect this kind of error? Yes, probably. > And how to use it to detect it? Did you read http://valgrind.org/docs/manual/QuickStart.html yet? |