3 # xleaktrace - print unfreed memory using input generated by compact malloc
4 # tracing (malloc_set_trace(1))
6 # NOTE: we ignore `realloc' tags because they're just extra information
22 # printf "allocated: %s %d %d %s %d\n", $2, alloc[$2], size[$2], file[$2], line[$2];
28 # printf "freed: %s %d\n", $2, alloc[$2];
30 printf "freeing unallocated pointer: %s\n", $2;
35 printf "unfreed memory\n";
37 if (alloc[ptr] == 1) {
38 printf "%s (%d) from %s:%d\n", ptr, size[ptr], file[ptr], line[ptr];