Sun Studio 12 Update 1: Debugging a Program With dbx

showleaks Command

Note –

The showleaks command is available only on Solaris platforms.

In the default non-verbose case, a one line report per leak record is printed. Actual leaks are reported followed by the possible leaks. Reports are sorted according to the combined size of the leaks.


showleaks [-a] [-m m] [-n number] [-v]


-a shows all the leaks generated so far (not just the leaks since the last showleaks command).

-m m combines leaks; if the call stack at the time of allocation for two or more leaks matches m frames, then these leaks are reported in a single combined leak report. If the -m option is given, it overrides the global value of m specified with the check command (see check Command)..

-n number shows up to number records in the report. The default is to show all records.

-v Generate verbose output. The default is to show non-verbose output.