Hi, This isnt really a "C" question per se, so readers can ignore this question if they want to .. However, i am sure there would be folks here who would the answer to this question ..
I have a BIG application and when its shutting down it gives a core dump. Its a case of a memory corruption, and some task it seems is overwriting my data structures (basically linked lists) and it crashes when i try to free the memory associated with the linked list. Note that this only happens when i try to shut down my task. I have the following question. When my task is shutting down wont the OS (linux or solaris) anyways free all the memory associated with that task? If thats the case then i dont need to explicitly free the memory as the OS would do it for me. Is this correct? Also, i have seen this in some other programs, which when close dont free the memory. They expect the OS to do it automatically when the process dies. Is this correct? Thanks, Tulip __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
