摘要
内存泄漏是程序设计中经常出现的问题,即使有少量泄漏,长期运行之后,系统将会面临崩溃的危险。避免内存泄漏的关键,就是要了解它发生的原因。文章首先阐述了内存泄漏的概念,分析了导致内存泄漏的原因,然后介绍了内存泄漏的分类、危害以及内存泄露的常见情况,并给出了检测内存泄漏的方法。
Memory leak is a problem appeared frequently in programming, which cannot be neglected. The system will collapse after long-term operation even it has little leak. The key to avoid memory leak is to find the causes. This paper discusses the concept, analyzes the causes, introduces the classification, harm and scenes of memory leak and presents examining methods to prevent leak.
出处
《长春大学学报》
2009年第6期27-29,共3页
Journal of Changchun University
关键词
C程序
内存泄漏
堆内存
C program
memory leak
heap memory