Skip to content

artiam99/C-CPP-Memory-Leak-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-CPP-Memory-Leak-Detector

This is C/C++ Memory Leak Detector Library. It maintains two databases - Structure Database and Object Database.

User Application registers all its structures with MLD Library at the time of initialization.

Whenever application xcalloc() an object , object record entry is inserted in object database.

If there is any Memory Leak in Application Code, "report_leaked_objects()" function detects that Memory Leak.

Compilation -

gcc -g -c mld.c -o mld.o

gcc -g -c app.c -o app.o

gcc -g app.o mld.o -o exe

For testing modify app.c file. Create some memory leaks. Do compile as mentioned above. Run the exe file.

./exe

High Level Design

hld

Testing MLD Library

Screenshot (88)

Screenshot (89)

Screenshot (90)

Screenshot (85)

Screenshot (86)

Screenshot (87)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages