//Note: Without the final return(0) in this example, Purify does not consider the memory leaked.
#include <windows.h>
#include <iostream.h>
int
main(int, char **)
{
//Allocate and discard 5K
(void) new char[1000];
(void) new char[1000];
(void) new char[1000];
(void) new char[1000];
(void) new char[1000];
//Will show up as leaks totaling 5K on the MLK report
return(0);
}
(C) Copyright IBM Corporation 1992, 2010.