showleaks Command

The showleaks command reports new memory leaks since last showleaks command. 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.

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

where:

-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. The default value of m is 2 or (if specified) the global value last given with the 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.