|
From: Kyle M. <kyl...@gm...> - 2013-02-28 22:56:39
|
Hi all, I'm wondering if it's possible for memcheck to show the last place
that some memory was accessible before being leaked. For example, I would
like to see the line numbers for both "allocated here" and "leaked here" in
the example below.
int* g() {
int* x = new int[256]; <-- allocated here
...
return x;
}
int f() {
int* x = g();
...
return 0; <-- leaked here
}
Thanks!
Kyle
|