Skip to content

Binary-Song/Cmcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cmcheck

Cmcheck

Cmcheck 是一个C语言内存泄漏检查工具。

使用方法

    1. 自己将mcheck.cpp编译成库,windows系统可以使用编译好的lib文件。
    1. 在需要检查的.c源文件里#includemcheck.h,该文件中的mallocfree即可被映射到它们的tracked版本。如果想检查callocrealloc,自行修改mcheck.h。
    1. 在程序出口附近调用DumpMemRecord()函数,即可显示此时未释放的内存。
    1. 编译时记得链接mcheck库。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published