Commit c1449740 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fix the framework for hunting memory leaks.

parent 02ac6ebc
1999-05-16 Per Cederqvist <>
Fix the framework for hunting memory leaks.
* 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
(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
(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 <>
Fixes to the test suite.
Supports Markdown
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