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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to