malloc, memory free

Posted on 1999-08-01
Medium Priority
Last Modified: 2010-04-15
Hi, If I malloc memory and I do not freed the same in code. When  program will terminate, will the memory be freed by OS.? If yes how OS does that ?
Question by:Tikshya
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

arnond earned 150 total points
ID: 1264150
it depends on the OS. DOS/win3.x will not free it. WIN9X/NT should free it. OSs that free 'unfreed' ,memory have a mechanism that allocates resources to processes when they begin and deallocate them when the process ends.

Arnon David.

Author Comment

ID: 1264151


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question