I was going through the common issues in memory management. I'm curious to know how is the memory managed in the following case with dynamic memory management in c:
- I request the memory manager to provide me a free portion through
malloc()
call. - I performed some computations and stored a portion of the data on that section of memory.
- The memory allocated in not freed.
How does the memory grow on the application. Does it keeps growing (of the some GUI element whose data container is not cleared once allocated).Does it grows each time i open the application untill program terminates (though it is allocated in the normals fashion using some DMA functions).
Will the segment of memory be freed by application during runtime or os doesnt cares of the memory mamagement in such cases ??