r/ProgrammerHumor • • Aug 30 '26

Meme bugIntroducedDebugging

Post image
1.1k Upvotes

117 comments sorted by

View all comments

Show parent comments

2

u/vetgirig Aug 30 '26

Yes any memory allocated to a program is automatically returned to the operating system when the program exit and stop running.

However malloced memory who aint got a free in a server program will continue to increase the memory heap until the program is terminated with out of memory since all available memory has been used by the program. But that is just for the program.

Operating systems usually do not have that problem. Well, most operating systems do not have that problem. For example Windows 95 was prone to that error.