首页 | 本学科首页   官方微博 | 高级检索  
     检索      

C语言中的内存泄漏分析
引用本文:王祥瑞.C语言中的内存泄漏分析[J].长春大学学报,2009,19(6):27-29.
作者姓名:王祥瑞
作者单位:吉林建筑工程学院计算机科学与工程学院;
摘    要:内存泄漏是程序设计中经常出现的问题,即使有少量泄漏,长期运行之后,系统将会面临崩溃的危险。避免内存泄漏的关键,就是要了解它发生的原因。文章首先阐述了内存泄漏的概念,分析了导致内存泄漏的原因,然后介绍了内存泄漏的分类、危害以及内存泄露的常见情况,并给出了检测内存泄漏的方法。

关 键 词:C程序  内存泄漏  堆内存  

Analysis on memory leak in C program
WANG Xiang-rui.Analysis on memory leak in C program[J].Journal of Changchun University,2009,19(6):27-29.
Authors:WANG Xiang-rui
Institution:School of Computer Science and Engineering;Jilin Institute of Architecture and Civil Engineering;Changchun 130021;China
Abstract: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.
Keywords:C program  memory leak  heap memory  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号