GetMem() is the Turbo Pascal/Delphi equivalent to C/C++'s malloc() function; which is used for dynamic memory allocation in computer programming.
When the C programmer whipped out malloc(), the Pascal programmer whipped out GetMem() in defense.