diff options
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/mtrace.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/malloc/mtrace.c b/malloc/mtrace.c index 02da0ae764..ec551ff49e 100644 --- a/malloc/mtrace.c +++ b/malloc/mtrace.c @@ -204,8 +204,11 @@ tr_reallochook (ptr, size, caller) else if (ptr == NULL) fprintf (mallstream, "+ %p %#lx\n", hdr, (unsigned long int) size); else - fprintf (mallstream, "< %p\n> %p %#lx\n", ptr, hdr, - (unsigned long int) size); + { + fprintf (mallstream, "< %p\n", ptr); + tr_where (caller); + fprintf (mallstream, "> %p %#lx\n", hdr, (unsigned long int) size); + } if (hdr == mallwatch) tr_break (); |