SM_HEAP_CHECK |
Memory-leak detection (V8.12 and above) | port with confENVDEF |
Level |
Description |
---|---|
1 |
This level causes a table of all currently allocated blocks to be maintained. The table is used by the sendmail hooks sm_realloc( ) and sm_free( ) to perform validity checks on their first arguments. |
2 |
With this level, a report will be printed just before sendmail exits. That report contains a single line listing the total storage allocation used in bytes. |
3 |
With this level, a report will be printed just before sendmail exits. That report, in addition to the report given previously, will also list all leaked blocks of memory. |
4 |
With this level, a report will be printed just before sendmail exits. That report, in addition to the reports given previously, will also list all allocated memory blocks. |
The -dsm_check_heap command-line switch is most useful when porting sendmail to a new machine. It can also be valuable when adding new functions to sendmail or to its companion programs.
To see if this compile-time macro is defined with your sendmail binary, use the -d0.12 debugging command-line switch.