Is it really important if this happens once and only once during the entire application life cycle?
For most people, this will depend on what βa small part of your own memoryβ means to you. If we are talking about a few KB, then I would not have to worry about it when he lost once. If, on the other hand, we are talking about a few MB, things are probably different ...
However, the presence of a known memory leak is a sign of potential design problems, which may also cause other problems. It can also be a problem if future refactoring changes the architecture of the application.
Will the memory eventually be overwritten and thus be fixed?
Of course ... in the end. When the process is complete, the kernel will release all allocated resources. I am not very familiar with the internal development of Android, but I understand that processes are generally more durable than on the Linux desktop system. For embedded devices with little memory and no swap space, this can be a problem, especially if all application authors start memory leaks everywhere.
source share