C-language

  • Published on
    A memory leak is when a program reserves memory and the reference to the item holding the memory is lost. Therefore, the program consuming the memory cannot release it back to the OS to be reallocated. Memory leak can occurs when programmers create a memory in a heap and forget to delete it.