PurifyClearLeaks

Example       Related Topics

Description

Marks memory leaks as cleared.

Syntax

int PurifyClearLeaks(void)

Returns

n

The number of bytes leaked since the last call to PurifyClearLeaks or PurifyNewLeaks.

Notes

§      This function, unlike PurifyNewLeaks and PurifyAllLeaks, does not generate any messages in the Error View.

§      After Purify marks the memory, it is not counted by subsequent calls to PurifyNewLeaks.

§      PurifyClearLeaks is useful when you want to ignore all leaks from a certain portion of code, such as a start-up sequence.

§      Calling this function repeatedly in a program that contains a large number of allocated blocks can slow down the instrumented program at run time.

§      You can call PurifyClearLeaks interactively from the Purify View menu while your program is running.

(C) Copyright IBM Corporation 1992, 2010.