If I allocate (using malloc) 15 bytes every time I run a code without releasing the memory.lets assume I run the code 100 times so I have a leak of 1500 bytes (on a virtual machine).Does this memory ever released? or It is still out there taking a memory from my computer?
Asked
Active
Viewed 42 times
0
-
1When your process terminates, the memory is reclaimed. – Lasse V. Karlsen Apr 29 '18 at 08:08
-
@MasterDarkNight I don't think this question needs any code. – Matti Virkkunen Apr 29 '18 at 08:09
-
https://stackoverflow.com/questions/2975831/is-leaked-memory-freed-up-when-the-program-exits – Charles Shiller Apr 29 '18 at 08:09
-
@Matti there must be something he would have tried so that he came across this problem – Apr 29 '18 at 08:10
-
@MasterDarkNight no it is just curiosity. – נירייב שמואל Apr 29 '18 at 08:12
-
1@MasterDarkNight Does it really make a difference if the question is a full description of the problem? Not every question needs code. – Matti Virkkunen Apr 29 '18 at 08:12
-
Ok , sorry then – Apr 29 '18 at 08:12