Question d’entretien chez Flow Traders

How does the programming language handle the allocated memory that doesn't have a reference? how does that work?