Top "Free" questions

Do not use this tag to refer to free software.

Why exactly should I not call free() on variables not allocated by malloc()?

I read somewhere that it is disastrous to use free to get rid of an object not created by calling …

c memory memory-management free malloc
Where do malloc() and free() store allocated sizes and addresses?

Where do malloc() and free() store the allocated addresses and their sizes (Linux GCC)? I've read that some implementations store …

c memory free heap
Why does `free` in C not take the number of bytes to be freed?

Just to be clear: I do know that malloc and free are implemented in the C library, which usually allocates …

c memory-management malloc free
How to free recursive struct (trie)

FINAL EDIT My function that frees the memory works properly, and as milevyo has suggested, the problem lies in node …

c recursion struct free trie