Skip to content

Priyandubey/Memory_Leak_Detector

Repository files navigation

This is a c programs Memory Leak Detector, implemented using C++ library injection

To run this project on your own Linux Systems :-

Build the leakfinder shared library by typing

g++ -shared -fPIC allocation_info.cpp leakfinder.cpp -o leakfinder.so -lpthread -ldl

then in same terminal

cc c_example.c -o c_example

Open another terminal and then set the LD_PRELOAD

export LD_PRELOAD=./leakfinder.so

Lastly, run the c_example in the terminal where LD_PRELOAD was set

./c_example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published