My program is a daemon (it never exits). How can I get Memory Advisor to produce a leak report?
Memory Advisor intercepts the exit() system call and performs automated leak detection, allocation, and file descriptor reporting at that time. If your process does not call exit() or exits via another mechanism, you must add explicit calls to Memory Advisor’s API functions to obtain the reports you want.