If you use FillChar on a variable which is type of PChar, you will loose pointer, and FreeMem will not work.