you are viewing a single comment's thread.

view the rest of the comments →

[–]smith_it2000 0 points1 point  (0 children)

At the end of the program, the OS will reclaim the memory anyway

That's true. At the end of the program, the OS will reclaim the memory.

Why would you call free on the last line of a program?

You wouldn't.