The malloc function performs dynamic memory allocation in C and is part of the standard library.
I am running ASAN for finding memory leaks in a very big project. I have found out the cause, but …
c malloc heap free address-sanitizerFor one reason or another, I want to hand-roll a zeroing version of malloc(). To minimize algorithmic complexity, I want …
c malloc memsetquick question Can you use the free() function without having to prior call a malloc ?? ei. void someFunc( void ) { char …
c malloc callocI would like to monitor the use of mallocs and frees in an application by using the malloc and free …
c malloc glibcI have been taught in lectures, that calling free() on a pointer twice is really, really bad. I know that …
c pointers malloc free dynamic-memory-allocationI have always been curious about this - why do in C++ I have to cast return value from malloc …
c++ c mallocWhat is the advantage of zeroing out memory (i.e. calloc() over malloc())? Won't you change the value to something …
c memory memory-management malloc calloc