• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 818
  • Last Modified:

malloc, memory free

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
Tikshya
Asked:
Tikshya
1 Solution
 
arnondCommented:
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
 
TikshyaAuthor Commented:

 
0

Featured Post

SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now