| 202 | } |
| 203 | |
| 204 | void |
| 205 | nhfree(genericptr_t ptr, const char *file, int line) |
| 206 | { |
| 207 | if (!tried_heaplog) |
| 208 | heapmon_init(); |
| 209 | if (heaplog) |
| 210 | (void) fprintf(heaplog, "- %s %4d %s\n", |
| 211 | fmt_ptr((genericptr_t) ptr), line, file); |
| 212 | |
| 213 | free(ptr); |
| 214 | } |
| 215 | |
| 216 | /* strdup() which uses our alloc() rather than libc's malloc(), |
| 217 | with caller tracking */ |
nothing calls this directly
no test coverage detected