Commit c1449740 authored by Per Cederqvist's avatar Per Cederqvist

Fix the framework for hunting memory leaks.

parent 02ac6ebc
1999-05-16 Per Cederqvist <ceder@lysator.liu.se>
Fix the framework for hunting memory leaks.
* configure.in: Handle --with-traced-allocations.
* acconfig.h (TRACED_ALLOCATIONS): New define.
* src/server/trace-alloc.h: New file.
* src/server/testsuite/config/unix.exp (lyskomd_start): Handle
TRACED_ALLOCATIONS.
(lyskomd_fail_start): Likewise.
* src/server/ramkomd.c (main): Call trace_alloc_file very early
during startup if compiled with TRACED_ALLOCATIONS.
* src/server/ram-smalloc.c: Test TRACED_ALLOCATIONS instead of
DEBUG_MALLOC.
(trace_alloc_file): New function, that sets up malloc_fp.
(trace_smalloc): Write to malloc_fp.
(trace_free): Likewise.
(srealloc): Likewise.
* src/server/ram-smalloc.c: Don't test USE_GNU_MALLOC; that symbol
was removed 1998-08-09.
1999-05-14 Per Cederqvist <ceder@lysator.liu.se>
Fixes to the test suite.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment