?
Solved

malloc, memory free

Posted on 1999-08-01
2
Medium Priority
?
817 Views
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 ?
0
Comment
Question by:Tikshya
[X]
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
2 Comments
 
LVL 3

Accepted Solution

by:
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.
0
 

Author Comment

by:Tikshya
ID: 1264151

 
0

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