Skip to content

Latest commit

 

History

History
40 lines (20 loc) · 1.52 KB

README.md

File metadata and controls

40 lines (20 loc) · 1.52 KB

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)