MCPcopy Create free account
hub / github.com/NetHack/NetHack / nhfree

Function nhfree

src/alloc.c:204–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void
205nhfree(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 */

Callers

nothing calls this directly

Calls 3

heapmon_initFunction · 0.85
fprintfFunction · 0.85
fmt_ptrFunction · 0.85

Tested by

no test coverage detected