I have a question about pointers in C. Each pointer has 4 bytes in memory (address). When I call malloc (), it allocates memory and places it in the pointer, also free () only frees the memory that the pointer points to. But how can I delete a pointer (4 bytes) in memory that I no longer need? Is there a memory leak?
c memory-management pointers memory free
Zaffy
source share