Procedure FreeMem(Var P:Pointer;Size:LongInt); This releases pointer P that was allocated by GetMem. The value in Size is not used. The correct amount of memory is automatically deallocated (unlike System.GetMem). If successful, P = NIL. If unsuccessful, P remains unchanged or the program halts.