Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Freeing

Name: Anonymous 2008-12-29 1:26

Is there any real point in freeing memory these days? And I don't mean freeing memory for things that constantly grow and shrink in size. I mean freeing that one array that you malloc at the beginning of the program and you need it until the end of the program. What is the benefit of freeing it when it will be automatically freed by the operating system?

Name: Anonymous 2008-12-29 6:37

>>7
that's pretty stupid. if you don't want your program's data to stay in memory you should zero it out yourself.

Name: Anonymous 2008-12-29 6:50

>>7
Both Windows and Linux leave the memory intact when you work in C.

Name: Anonymous 2008-12-29 6:52

>>7
Oh, that's why all my uninitialized variables have random values.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List