Skip to content

Mograbi/dynamic-memory-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Valgrind like program you can check with this api whether there is a dynamic allocation leak or not and how many

using: at fisrt of the program add initMemory() at end of the program add finishMemory()

use allocate instead of malloc like: "int* i = allocate(sizeof(int));" use deallocate instead of free function like: "deallocate(i,sizeof(*i));"

you have to tell the size of the pointer which is sizeof(*i)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages