deallocate
Verb
Meaning
(transitive) To remove from the set of resources put aside for (allocated to) a particular user or purpose.
Empty out your locker; it will be deallocated at the end of the day.
(transitive, computing) To return previously allocated memory.
Computer programs should deallocate memory they no longer need, releasing it back to the system.
Synonyms
Antonyms
Related terms
Examples
A C++ object's destructor must be invoked implicitly (in the case of stack-bound variables) or explicitly to deallocate an object.
The real issue in production: the garbage collector disturbs the program's behaviour by regularly executing a task that goes through the memory to detect what to deallocate.
So with a traditional model, you would deallocate textures, releasing pages back to the system, and then reallocate, which will allocate a new set of textures all over again.
If the program attempts to access or deallocate memory that has already been deallocated, the result is undefined and difficult to predict, and the program is likely to become unstable and/or crash.
Furthermore, it would require significant overhead to continually allocate and deallocate the orthogonal code, time slot or frequency channel resources.
If the program does not deallocate an object, a memory leak occurs.