A memory leak may also happen when an object is stored in memory but cannot be accessed by the running code (i.e. unreachable memory ). [2].