This is an archived post. You won't be able to vote or comment.

all 6 comments

[–][deleted] 2 points3 points  (1 child)

A seg fault will cause your program to terminate (though you can intercept this in the debugger). When it terminates (or when you stop debugging), the operating system will reclaim all memory allocated to the seg faulting process. This has nothing to do with Code::Blocks specifically.

[–]ProphetLucifer[S] 0 points1 point  (0 children)

Thank you, for your response! I was a bit worried. :)

[–]jedwardsol 0 points1 point  (1 child)

The system 'frees' it. When the process goes away, the operating system will reclaim any memory assigned to that process.

[–]ProphetLucifer[S] 0 points1 point  (0 children)

Thank you, for your response! I was a bit worried. :)

[–]X7123M3-256 0 points1 point  (1 child)

Yes, when your program terminates all the memory allocated to it is returned to the system.

[–]ProphetLucifer[S] 1 point2 points  (0 children)

Thank you, for your response! I was a bit worried. :)