Delphi 如何清除动态数组的内存?

SetLength(glb_IndexConfig,0);
FreeAndNil(glb_IndexConfig);