#include <crtdbg.h>
 #include <stdio.h>
 #include <stdlib.h>
 
 int main(){
 
 	// CRTメモリリーク検出用
 	_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
 	// CRTメモリリーク箇所検出
 	//_CrtSetBreakAlloc(58);
 
 	int* a = (int*)malloc(sizeof(int) * 4); 
 	//free(a); // freeし忘れでメモリリーク発生
 
 	return 0;
 }

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS