kxMemoryChunk - main
public cpp v1 · immutable// Stack.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "kxMemoryChunk.h"int _tmain(int argc, _TCHAR* argv[]){ // Zaregistrovani cleanovaci funkce atexit(kxMemoryChunk::Check); // Deklarace int* ptr0 = NULL; // Vytvoreni leaku ptr0 = new int; ptr0 = new int; ptr0 = new int; // Uvolneni jedne z mnoha alokovanych oblasti pameti delete ptr0; return 0;}