I can allocate whatever size i want using malloc. Now it has to be freed after i use it. What happens if i dont free the memory allocated using malloc. Say i were to write programs continuously using malloc but never free the allocated memory. Would my OS get affected by it and start behaving abnormally.
I read there is this phenomenon called memory leak which comes into play if we dont free the allocated memory. What is implied by it and what are its disadvantages ?